1 | var getPrototypeOf = require("./getPrototypeOf");
|
2 |
|
3 | function _superPropBase(object, property) {
|
4 | while (!Object.prototype.hasOwnProperty.call(object, property)) {
|
5 | object = getPrototypeOf(object);
|
6 | if (object === null) break;
|
7 | }
|
8 |
|
9 | return object;
|
10 | }
|
11 |
|
12 | module.exports = _superPropBase; |
\ | No newline at end of file |