@extra-array/concat
v2.10.19
Published
Appends values from arrays.
Downloads
297
Readme
Appends values from arrays. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:
This is part of package extra-array.
array.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 ]