lodash-pickDeep
A lodash mixin to add a pickDeep
function.
Install
$ npm install --save lodash-pickdeep
Usage
Using it as a lodash mixin
var _ = ;var pickDeep = ; _; _;// => { a: { b: { c: 'foo', e: { f: 'baz' } } } }
Using it on its own
var pickDeep = ; ;// => { a: { b: { c: 'foo', e: { f: 'baz' } } } }
API Documentation
_.pickDeep(object, [props])
Creates an object composed of the picked object properties, which may contain deep property identifiers.
Arguments
object
(Object): The source object.[props]
(...(string|string[]): The property identifiers to pick, specified individually or in arrays.
Returns
(Object): Returns the new object.
License
Copyright (c) 2016, James M. Greene (MIT License)