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

2.10.19 • Public • Published

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

Alternatives: unshift, unshift$.
Similar: push, pop, shift, unshift.

This is part of package extra-array.


array.unshift$(x, ...vs);
// x:  an array (updated)
// vs: values to add
// → x
const array = require("extra-array");

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

x;
// [ 2, 3, 4 ]

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


References

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @extra-array/unshift-update

      Weekly Downloads

      284

      Version

      2.10.19

      License

      MIT

      Unpacked Size

      4.19 kB

      Total Files

      8

      Last publish

      Collaborators

      • wolfram77