MCPcopy
hub / github.com/snyk/cli / baseAt

Function baseAt

packages/snyk-protect/test/fixtures/patchable-file/lodash.js:2571–2581  ·  view source on GitHub ↗

* The base implementation of `_.at` without support for individual paths. * * @private * @param {Object} object The object to iterate over. * @param {string[]} paths The property paths to pick. * @returns {Array} Returns the picked elements.

(object, paths)

Source from the content-addressed store, hash-verified

2569 * @returns {Array} Returns the picked elements.
2570 */
2571 function baseAt(object, paths) {
2572 var index = -1,
2573 length = paths.length,
2574 result = Array(length),
2575 skip = object == null;
2576
2577 while (++index < length) {
2578 result[index] = skip ? undefined : get(object, paths[index]);
2579 }
2580 return result;
2581 }
2582
2583 /**
2584 * The base implementation of `_.clamp` which doesn't coerce arguments.

Callers 2

lodash.jsFile · 0.70
interceptorFunction · 0.70

Calls 1

getFunction · 0.70

Tested by

no test coverage detected