Napolean Paced Mischeviously

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

    2.2.15 • Public • Published

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

    Alternatives: shift, shift$.

    This is part of package extra-map.

    This is browserified, minified version of @extra-map/shift-update.
    It is exported as global variable map_shift$.
    CDN: unpkg, jsDelivr.


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


    References

    Install

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

    DownloadsWeekly Downloads

    160

    Version

    2.2.15

    License

    MIT

    Unpacked Size

    4.89 kB

    Total Files

    7

    Last publish

    Collaborators

    • wolfram77