-
Notifications
You must be signed in to change notification settings - Fork 5
includes
Subhajit Sahu edited this page May 19, 2020
·
16 revisions
Checks if iterable has a value. [:running:] [:vhs:] [:package:] [:moon:] [:ledger:]
Similar: [keys], [values], [entries].
iterable.includes(x, v);
// x: an iterable
// v: search value
const array = require('extra-array');
var x = [1, 2, -3];
array.includes(x, 3);
// false
array.includes(x, -3);
// true