MCPcopy Create free account
hub / github.com/RubyLouvre/anu / has

Function has

test/babel.js:28805–28807  ·  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} Returns `true` if `path` exists, else `false`. * @exam

(object, path)

Source from the content-addressed store, hash-verified

28803 * // => false
28804 */
28805 function has(object, path) {
28806 return object != null && hasPath(object, path, baseHas);
28807 }
28808
28809 module.exports = has;
28810

Callers 11

fastKeyFunction · 0.70
getWeakFunction · 0.70
onFreezeFunction · 0.70
babel.jsFile · 0.70
$definePropertyFunction · 0.70
$propertyIsEnumerableFunction · 0.70
$getOwnPropertyNamesFunction · 0.70
$getOwnPropertySymbolsFunction · 0.70
$setFunction · 0.70
caseFoldFunction · 0.70

Calls 1

hasPathFunction · 0.85

Tested by

no test coverage detected