Skip to content

Latest commit

 

History

History
65 lines (45 loc) · 1.58 KB

.verbrc.md

File metadata and controls

65 lines (45 loc) · 1.58 KB

{%= name %} {%= badge("fury") %}

{%= description %}

Install

{%= include("install-npm", {save: true}) %}

Run tests

npm test

Usage

var deepPick = require('{%= name %}');
var obj = {foo: {a: 'a'}, bar: {foo: {b: 'b'}}, baz: 'baz'};

deepPick(obj, 'foo');
//=> {foo: {a: 'a', b: 'b'}}

options.value

Pass value: true to return only the value for the specified property:

var obj = {foo: {a: 'a'}, bar: {foo: {b: 'b'}}, baz: 'baz'};

deepPick(obj, 'foo', {value: true});
//=> {a: 'a', b: 'b'}

Author

{%= include("author") %}

Other javascript/node.js utils

Other projects that I maintain:

License

{%= copyright() %} {%= license() %}


{%= include("footer") %}