Neglected Pizza Money

    just-pluck-it
    TypeScript icon, indicating that this package has built-in type declarations

    2.1.1 • Public • Published

    just-pluck-it

    Part of a library of zero-dependency npm modules that do just do one thing. Guilt-free utilities for every occasion.

    🍦 Try it

    npm install just-pluck-it
    yarn add just-pluck-it

    Pluck a property from each member of a collection

    import pluck from 'just-pluck-it';
    
    pluck([{a:1, b:2}, {a:4, b:3}, {a:2, b:5}], 'a'); // [1, 4, 2]
    pluck({x: {a:1, b:2}, y: {a:4, b:3}, z: {a:2, b:5}}, 'a'); // {x: 1, y: 4, z: 2}

    Install

    npm i just-pluck-it

    DownloadsWeekly Downloads

    964

    Version

    2.1.1

    License

    MIT

    Unpacked Size

    7.2 kB

    Total Files

    9

    Last publish

    Collaborators

    • angus-c