MCPcopy Create free account
hub / github.com/deployd/deployd / basePick

Function basePick

test-app/public/sinon.js:14377–14381  ·  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

14375 * @returns {Object} Returns the new object.
14376 */
14377 function basePick(object, paths) {
14378 return basePickBy(object, paths, function(value, path) {
14379 return hasIn(object, path);
14380 });
14381 }
14382
14383 /**
14384 * The base implementation of `_.pickBy` without support for iteratee shorthands.

Callers 1

sinon.jsFile · 0.85

Calls 2

basePickByFunction · 0.85
hasInFunction · 0.85

Tested by

no test coverage detected