MCPcopy
hub / github.com/lodash/lodash / hasIn

Function hasIn

lodash.js:13287–13289  ·  view source on GitHub ↗

* Checks if `path` is a direct or inherited property of `object`. * * @static * @memberOf _ * @since 4.0.0 * @category Object * @param {Object} object The object to query. * @param {Array|string} path The path to check. * @returns {boolean} Returns `true` if `

(object, path)

Source from the content-addressed store, hash-verified

13285 * // => false
13286 */
13287 function hasIn(object, path) {
13288 return object != null && hasPath(object, path, baseHasIn);
13289 }
13290
13291 /**
13292 * Creates an object composed of the inverted keys and values of `object`.

Callers 2

baseMatchesPropertyFunction · 0.85
basePickFunction · 0.85

Calls 1

hasPathFunction · 0.85

Tested by

no test coverage detected