-
Notifications
You must be signed in to change notification settings - Fork 1
concat
Subhajit Sahu edited this page May 9, 2020
·
24 revisions
Appends iterables together. [:running:] [:vhs:] [:package:] [:moon:]
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
// ]