2021-02-11 21:31:41 +08:00

9 lines
291 B
JavaScript

import getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
export default function _superPropBase(object, property) {
while (!Object.prototype.hasOwnProperty.call(object, property)) {
object = getPrototypeOf(object);
if (object === null) break;
}
return object;
}