@extra-array/concat-update.min

Appends values from arrays.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@extra-array/concat-update.min
1402.10.197 months ago3 years agoMinified + gzip package size for @extra-array/concat-update.min in KB

Readme

Appends values from arrays. :package: :smileycat: :running: :vhs: :moon: :scroll: :newspaper: :bluebook:
Alternatives: concat, concat$.
Similar: concat, join.

This is part of package extra-array.

This is browserified, minified version of @extra-array/concat-update.
It is exported as global variable arrayconcat$.
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 ]



References