-
Notifications
You must be signed in to change notification settings - Fork 1
includes
Subhajit Sahu edited this page Feb 3, 2021
·
19 revisions
Check if iterable has a value.
function includes(x, v, i)
// x: an iterable
// v: search value
// i: start index [0]
const xiterable = require('extra-iterable');
var x = [1, 2, -3];
xiterable.includes(x, 3);
// → false
xiterable.includes(x, -3);
// → true