Naivete Precedes Misrepresentation

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

    2.2.11 • Public • Published

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

    Alternatives: shift, shift$.

    This is part of package extra-set.

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


    set.shift(x);
    // x: a set
    const set = require("extra-set");
    
    var x = new Set([1, 2, 3]);
    set.shift(x);
    // Set(2) { 2, 3 }
    
    var x = new Set([1, 2, 3, 4]);
    set.shift(x);
    // Set(3) { 2, 3, 4 }


    References

    Install

    npm i @extra-set/shift.min

    DownloadsWeekly Downloads

    33

    Version

    2.2.11

    License

    MIT

    Unpacked Size

    4.7 kB

    Total Files

    7

    Last publish

    Collaborators

    • wolfram77