Neoanthropic Preternatural Murmurings

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

    2.2.5 • Public • Published

    Gives keys present in any object. 🏃 📼 📦 🌔 📒

    Similar: unionKeys, intersectionKeys.
    This is part of package extra-object.

    This is browserified, minified version of @extra-object/union-keys.
    It is exported as global variable object_unionKeys.
    CDN: unpkg, jsDelivr.

    object.unionKeys(...xs);
    // xs: objects
    const object = require('extra-object');
    
    var x = {a: 1, b: 2, c: 3, d: 4};
    var y = {b: 20, c: 30, e: 50};
    object.unionKeys(x, y);
    // Set(5) { 'a', 'b', 'c', 'd', 'e' }

    references

    Install

    npm i @extra-object/union-keys.min

    DownloadsWeekly Downloads

    88

    Version

    2.2.5

    License

    MIT

    Unpacked Size

    4.89 kB

    Total Files

    9

    Last publish

    Collaborators

    • wolfram77