forked from ard/ruoyi-api

aijinhui
2023-09-26 6642bd2b06a87e8498bc83a0cc0e2a3d8ca2a582
1
2
3
4
5
6
7
8
import getPrototypeOf from "./getPrototypeOf.js";
export default function _superPropBase(object, property) {
  while (!Object.prototype.hasOwnProperty.call(object, property)) {
    object = getPrototypeOf(object);
    if (object === null) break;
  }
  return object;
}