import i from "./_baseKeys.js";
import f from "./_getTag.js";
import p from "./isArguments.js";
import e from "./isArray.js";
import m from "./isArrayLike.js";
import n from "./isBuffer.js";
import s from "./_isPrototype.js";
import y from "./isTypedArray.js";
var g = "[object Map]", c = "[object Set]", a = Object.prototype, b = a.hasOwnProperty;
function k(r) {
  if (r == null)
    return !0;
  if (m(r) && (e(r) || typeof r == "string" || typeof r.splice == "function" || n(r) || y(r) || p(r)))
    return !r.length;
  var t = f(r);
  if (t == g || t == c)
    return !r.size;
  if (s(r))
    return !i(r).length;
  for (var o in r)
    if (b.call(r, o))
      return !1;
  return !0;
}
export {
  k as default
};
