-
Notifications
You must be signed in to change notification settings - Fork 1
concat
wolfram77 edited this page Mar 27, 2020
·
24 revisions
Appends arrays to the end.
array.concat(x, ...ys);
// x: an array
// ys: arrays to append
const array = require('extra-array');
var x = [1, 2];
array.concat(x, [3, 4]);
// [1, 2, 3, 4]
var y = [5, 6];
array.concat(x, y, y);
// [
// 1, 2,
// 5, 6, 5, 6
// ]