MCPcopy
hub / github.com/lodash/lodash / basePick

Function basePick

lodash.js:3806–3810  ·  view source on GitHub ↗

* The base implementation of `_.pick` without support for individual * property identifiers. * * @private * @param {Object} object The source object. * @param {string[]} paths The property paths to pick. * @returns {Object} Returns the new object.

(object, paths)

Source from the content-addressed store, hash-verified

3804 * @returns {Object} Returns the new object.
3805 */
3806 function basePick(object, paths) {
3807 return basePickBy(object, paths, function(value, path) {
3808 return hasIn(object, path);
3809 });
3810 }
3811
3812 /**
3813 * The base implementation of `_.pickBy` without support for iteratee shorthands.

Callers 1

lodash.jsFile · 0.85

Calls 2

basePickByFunction · 0.85
hasInFunction · 0.85

Tested by

no test coverage detected