just-pluck

1.0.0 • Public • Published

just-pluck

Build Status npm install npm version js-standard-style License

simple pluck function

why

there are a lot of implementations out there that either don't support deep lookup or try to do too much wacky stuff or have a lot of dependencies for no good reason.

usage

var pluck = require('just-pluck')
 
var pokemon = [{name: 'pikachu'}, {name: 'meowth'}, {name: 'mr mime'}]
 
console.log(pluck('name', pokemon)) // ['pikachu', 'meowth', 'mr mime']

notes

if nothing is pluck-able from the item in your array, it will be undefined in the result.

license

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    8
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    8
  • 0.0.0
    1

Package Sidebar

Install

npm i just-pluck

Weekly Downloads

9

Version

1.0.0

License

MIT

Last publish

Collaborators

  • jarofghosts