object-pullvalues

0.0.8 • Public • Published

object-pullvalues

NPM

Pull some Values of an Object.

var pullv = require('object-pullvalues');
// pullv(<object>, <keys>)
 
var a = {'n': 'Nefarious', 'p': 'Planetary', 'm': 'Meddling'};
 
pullv(a, ['n', 'p']);
// ['Nefarious', 'Planetary']
 
pullv(a, ['m', '.']);
// ['Meddling', undefined]
 
pullv(a, 'm');
// 'Meddling'
 
pullv(a);
// ['Nefarious', 'Planetary', 'Meddling']

Readme

Keywords

Package Sidebar

Install

npm i object-pullvalues

Weekly Downloads

1

Version

0.0.8

License

MIT

Last publish

Collaborators

  • wolfram77