isPlainObject.js 475 B

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