UNPKG

289 BJavaScriptView Raw
1var getPrototypeOf = require("./getPrototypeOf");
2
3function _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
12module.exports = _superPropBase;
\No newline at end of file