MCPcopy Create free account
hub / github.com/easydiffusion/easydiffusion / hasProperty

Function hasProperty

ui/plugins/ui/jasmine/jasmine.js:2312–2322  ·  view source on GitHub ↗
(obj, property)

Source from the content-addressed store, hash-verified

2310 }
2311
2312 function hasProperty(obj, property) {
2313 if (!obj || typeof obj !== "object") {
2314 return false
2315 }
2316
2317 if (Object.prototype.hasOwnProperty.call(obj, property)) {
2318 return true
2319 }
2320
2321 return hasProperty(Object.getPrototypeOf(obj), property)
2322 }
2323
2324 ObjectContaining.prototype.asymmetricMatch = function(other, matchersUtil) {
2325 if (typeof this.sample !== "object") {

Callers 1

jasmine.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected