(obj, property)
| 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") { |