swc/packages/helpers/esm/_super_prop_base.js

12 lines
326 B
JavaScript
Raw Normal View History

import { _get_prototype_of } from "./_get_prototype_of.js";
export function _super_prop_base(object, property) {
while (!Object.prototype.hasOwnProperty.call(object, property)) {
object = _get_prototype_of(object);
if (object === null) break;
}
return object;
2021-12-05 09:46:09 +03:00
}
export { _super_prop_base as _ };