Skip to content
Subhajit Sahu edited this page May 11, 2020 · 24 revisions

Appends iterables together. 🏃 📼 📦 🌔 📒

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 ]

references

Clone this wiki locally