@extra-array/push-update.min
TypeScript icon, indicating that this package has built-in type declarations

2.10.19 • Public • Published

Adds values to the end. 📦 😺 🏃 📼 🌔 📜 📰 📘

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 array_push$.
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

Package Sidebar

Install

npm i @extra-array/push-update.min

Weekly Downloads

2

Version

2.10.19

License

MIT

Unpacked Size

4.97 kB

Total Files

8

Last publish

Collaborators

  • wolfram77