-
Notifications
You must be signed in to change notification settings - Fork 1
concat
wolfram77 edited this page Mar 31, 2020
·
24 revisions
Appends iterables to the end.
iterable.concat(...xs);
// xs: iterables
const iterable = require('extra-iterable');
var x = [1, 2];
var y = [3, 4];
[...iterable.concat(x, y)];
// [1, 2, 3, 4]
[...iterable.concat(x, y, y)];
// [
// 1, 2,
// 3, 4, 3, 4
// ]