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

    2.10.18 • Public • Published

    Removes first value. 📦 😺 🏃 📼 🌔 📜 📰 📘

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

    This is part of package extra-array.

    This is browserified, minified version of @extra-array/shift.
    It is exported as global variable array_shift.
    CDN: unpkg, jsDelivr.


    array.shift(x);
    // x: an array
    const array = require("extra-array");
    
    var x = [1, 2, 3];
    array.shift(x);
    // [2, 3]
    
    var x = [1, 2, 3, 4];
    array.shift(x);
    // [2, 3, 4]


    References

    Install

    npm i @extra-array/shift.min

    DownloadsWeekly Downloads

    375

    Version

    2.10.18

    License

    MIT

    Unpacked Size

    4.74 kB

    Total Files

    7

    Last publish

    Collaborators

    • wolfram77