superPropBase.js 269 B

123456789
  1. import getPrototypeOf from "./getPrototypeOf.js";
  2. export default 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. }