{%= description %}
{%= include("install-npm", {save: true}) %}
npm test
var deepPick = require('{%= name %}');
var obj = {foo: {a: 'a'}, bar: {foo: {b: 'b'}}, baz: 'baz'};
deepPick(obj, 'foo');
//=> {foo: {a: 'a', b: 'b'}}
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'}
{%= include("author") %}
Other projects that I maintain:
- arrayify-compact
- compact-object
- delete
- for-in
- for-own
- has-any
- has-value
- is-number
- is-plain-object
- mixin-deep
- mixin-object
- object-length
- omit-empty
- reduce-object
{%= copyright() %} {%= license() %}
{%= include("footer") %}