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

Function get

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

* Gets the value at `path` of `object`. If the resolved value is * `undefined`, the `defaultValue` is returned in its place. * * @static * @memberOf _ * @since 3.7.0 * @category Object * @param {Object} object The object to query. * @param {Array|string} path

(object, path, defaultValue)

Source from the content-addressed store, hash-verified

13124 * // => 'default'
13125 */
13126 function get(object, path, defaultValue) {
13127 var result = object == null ? undefined : baseGet(object, path);
13128 return result === undefined ? defaultValue : result;
13129 }
13130
13131 /**
13132 * Checks if `path` is a direct property of `object`.

Callers 6

baseAtFunction · 0.70
baseMatchesPropertyFunction · 0.70
cli.test.tsFile · 0.50
getDependenciesFromSpecsFunction · 0.50
assembleLocalPayloadsFunction · 0.50

Calls 1

baseGetFunction · 0.70

Tested by

no test coverage detected