@extra-array/concat-update.min
v2.10.19
Published
Appends values from arrays.
Downloads
1,217
Maintainers
Readme
Appends values from arrays. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:
This is part of package extra-array.
This is browserified, minified version of @extra-array/concat-update. It is exported as global variable array_concat$. CDN: unpkg, jsDelivr.
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 ]