import baseKeys from "./_baseKeys2.js";
import getTag from "./_getTag2.js";
import isArguments from "./isArguments2.js";
import isArray from "./isArray2.js";
import isArrayLike from "./isArrayLike2.js";
import isBuffer from "./isBuffer2.js";
import isPrototype from "./_isPrototype2.js";
import isTypedArray from "./isTypedArray2.js";
var mapTag = "[object Map]", setTag = "[object Set]";
var objectProto = Object.prototype;
var hasOwnProperty = objectProto.hasOwnProperty;
function isEmpty(value) {
  if (value == null) {
    return true;
  }
  if (isArrayLike(value) && (isArray(value) || typeof value == "string" || typeof value.splice == "function" || isBuffer(value) || isTypedArray(value) || isArguments(value))) {
    return !value.length;
  }
  var tag = getTag(value);
  if (tag == mapTag || tag == setTag) {
    return !value.size;
  }
  if (isPrototype(value)) {
    return !baseKeys(value).length;
  }
  for (var key in value) {
    if (hasOwnProperty.call(value, key)) {
      return false;
    }
  }
  return true;
}
export {
  isEmpty as default
};
//# sourceMappingURL=isEmpty2.js.map
