You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
289 B

4 years ago
  1. var getPrototypeOf = require("./getPrototypeOf");
  2. function _superPropBase(object, property) {
  3. while (!Object.prototype.hasOwnProperty.call(object, property)) {
  4. object = getPrototypeOf(object);
  5. if (object === null) break;
  6. }
  7. return object;
  8. }
  9. module.exports = _superPropBase;