isPlainObject.js 487 B

123456789101112131415
  1. import { bj as c, aM as a, bh as n } from "./index2.js";
  2. var i = c(Object.getPrototypeOf, Object), b = "[object Object]", s = Function.prototype, j = Object.prototype, e = s.toString, p = j.hasOwnProperty, f = e.call(Object);
  3. function O(r) {
  4. if (!a(r) || n(r) != b)
  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. };