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

Function has

test-app/public/sinon.js:23784–23786  ·  view source on GitHub ↗

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

(object, path)

Source from the content-addressed store, hash-verified

23782 * // => false
23783 */
23784 function has(object, path) {
23785 return object != null && hasPath(object, path, baseHas);
23786 }
23787
23788 /**
23789 * Checks if `path` is a direct or inherited property of `object`.

Callers

nothing calls this directly

Calls 1

hasPathFunction · 0.85

Tested by

no test coverage detected