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

func-prop

0.0.1 • Public • Published

prop

 
var prop = require( 'func-prop' )
 
var fighters = [
  {name: 'Evander'},
  {name: 'Muhammed'},
  {name: 'Mike'}
]
 
fighters.map( prop('name') ) 
//-> ['Evander', 'Muhammed', 'Mike']
 

invoke.backbone

Allso works with backbone style model objects that has the method get

 
var prop = require( 'func-prop' ).backbone
 
var fighters = new FightersCollection()
figthers.reset( fighters )
 
fighters.map( prop('name') )
//-> ['Evander', 'Muhammed', 'Mike']

Keywords

none

install

npm i func-prop

Downloadsweekly downloads

4

version

0.0.1

license

none

last publish

collaborators

  • avatar