-
Notifications
You must be signed in to change notification settings - Fork 1
push
wolfram77 edited this page Mar 27, 2020
·
20 revisions
Adds values to the end.
iterable.push(x, ...vs);
// x: an iterable
// vs: values to add
// --> iterable
const iterable = require('extra-iterable');
var x = [1, 2];
[...iterable.push(x, 3)];
// [1, 2, 3]
[...iterable.push(x, 3, 4)];
// [1, 2, 3, 4]