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