-
Notifications
You must be signed in to change notification settings - Fork 1
left
wolfram77 edited this page Apr 1, 2020
·
18 revisions
Gets values from the left.
iterable.left(x, [n]);
// x: an iterable
// n: number of values (1)
const iterable = require('extra-iterable');
var x = [1, 2, 3];
iterable.left(x, 1);
// [1]
iterable.left(x, 2);
// [1, 2]