isPlainObject.js 487 B

123456789101112131415
  1. import { bj as a, an as c, aT as n } from "./index2.js";
  2. var i = a(Object.getPrototypeOf, Object), s = "[object Object]", b = Function.prototype, j = Object.prototype, e = b.toString, p = j.hasOwnProperty, f = e.call(Object);
  3. function O(r) {
  4. if (!c(r) || n(r) != s)
  5. return !1;
  6. var o = i(r);
  7. if (o === null)
  8. return !0;
  9. var t = p.call(o, "constructor") && o.constructor;
  10. return typeof t == "function" && t instanceof t && e.call(t) == f;
  11. }
  12. export {
  13. i as g,
  14. O as i
  15. };