-
Notifications
You must be signed in to change notification settings - Fork 5
concat
Subhajit Sahu edited this page Nov 20, 2022
·
23 revisions
Append values from arrays.
function concat(...xs)
// xs: arrays
const array = require('extra-array');
var x = [1, 2];
var y = [3, 4];
array.concat(x, y);
// → [ 1, 2, 3, 4 ]
array.concat(x, y, y);
// → [ 1, 2, 3, 4, 3, 4 ]