node package manager

fj-pluck

fj-pluck

Build Status npm version

Plucks a property from the given object.

Installation

npm install fj-pluck --save

Usage

var pluck = require('pluck');
 
const obj = {
  name : 'fj-js'
}
 
pluck('name')(obj); // 'fj-js' 
 
pluck('name',obj) // 'fj-js'