@extra-set/shift-update.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-update.
    It is exported as global variable set_shift$.
    CDN: unpkg, jsDelivr.


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


    References

    Install

    npm i @extra-set/shift-update.min

    DownloadsWeekly Downloads

    33

    Version

    2.2.11

    License

    MIT

    Unpacked Size

    4.8 kB

    Total Files

    7

    Last publish

    Collaborators

    • wolfram77