-
Notifications
You must be signed in to change notification settings - Fork 1
includes
Subhajit Sahu edited this page May 10, 2020
·
19 revisions
Gets part of an iterable. [:running:] [:vhs:] [:package:] [:moon:]
Similar: [keys], [values], [entries].
iterable.slice(x, [i], [I]);
// x: an iterable
// i: start index (0)
// I: end index (end)
const iterable = require('extra-iterable');
var x = [1, 2, -3];
iterable.includes(x, 3);
// false
iterable.includes(x, -3);
// true