Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    object-reducepublic

    object-reduce

    object-reduce is a function that reduces an Object to match a specified list of keys.

    Build status

    Browser support

    Install

    npm install object-reduce
    

    Example

    var reduce = require('object-reduce')
     
    reduce({ a: 1, b: 2, c: 3 }, ['a', 'b'])
    // => { a: 1, b: 2 }
     
    reduce({ d: 4, e: 5 }, 'e')
    // => { e: 5 }

    License

    MIT

    Keywords

    none

    install

    npm i object-reduce

    Downloadsweekly downloads

    8

    version

    0.0.2

    license

    none

    last publish

    collaborators

    • avatar