-
Notifications
You must be signed in to change notification settings - Fork 5
concat$
Subhajit Sahu edited this page May 19, 2020
·
30 revisions
Appends arrays to the end. 🏃 📼 📦 🌔 📒
array.concat$(x, ...ys);
// x: an array (updated)
// ys: arrays to append
// --> x
const array = require('extra-array');
var x = [1, 2];
var y = [3, 4];
array.concat$(x, y);
// [ 1, 2, 3, 4 ]
x;
// [ 1, 2, 3, 4 ]
var x = [1, 2];
array.concat$(x, y, y);
// [ 1, 2, 3, 4, 3, 4 ]