NuGet Package Manager

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

    2.2.5 • Public • Published

    Removes first n entries. 🏃 📼 📦 🌔 📒

    Alternatives: drop, drop$.
    Similar: take, drop.
    This is part of package extra-object.

    This is browserified, minified version of @extra-object/drop-update.
    It is exported as global variable object_drop$.
    CDN: unpkg, jsDelivr.

    object.drop$(x, [n]);
    // x: an object (updated)
    // n: number of entries (1)
    // --> x
    const object = require('extra-object');
    
    var x = {a: 1, b: 2, c: 3, d: 4, e: 5};
    object.drop$(x, 2);
    // { c: 3, d: 4, e: 5 }
    
    x;
    // { c: 3, d: 4, e: 5 }
    
    var x = {a: 1, b: 2, c: 3, d: 4, e: 5};
    object.drop$(x, 3);
    // { d: 4, e: 5 }

    references

    Install

    npm i @extra-object/drop-update.min

    DownloadsWeekly Downloads

    1

    Version

    2.2.5

    License

    MIT

    Unpacked Size

    5.08 kB

    Total Files

    9

    Last publish

    Collaborators

    • wolfram77