@extra-array/push-update.min

Adds values to the end.

Downloads in past

Stats

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

Readme

Adds values to the end. :package: :smileycat: :running: :vhs: :moon: :scroll: :newspaper: :bluebook:
Alternatives: push, push$.
Similar: push, pop, shift, unshift.

This is part of package extra-array.

This is browserified, minified version of @extra-array/push-update.
It is exported as global variable arraypush$.
CDN: unpkg
, jsDelivr.



array.push$(x, ...vs);
// x:  an array (updated)
// vs: values to add
// → x

const array = require("extra-array");

var x = [1, 2];
array.push$(x, 3);
// [ 1, 2, 3 ]

x;
// [ 1, 2, 3 ]

var x = [1, 2];
array.push$(x, 3, 4);
// [ 1, 2, 3, 4 ]



References