"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const _baseKeys = require("./_baseKeys2.cjs");
const _getTag = require("./_getTag2.cjs");
const isArguments = require("./isArguments2.cjs");
const isArray = require("./isArray2.cjs");
const isArrayLike = require("./isArrayLike2.cjs");
const isBuffer = require("./isBuffer2.cjs");
const _isPrototype = require("./_isPrototype2.cjs");
const isTypedArray = require("./isTypedArray2.cjs");
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.default(value) && (isArray.default(value) || typeof value == "string" || typeof value.splice == "function" || isBuffer.default(value) || isTypedArray.default(value) || isArguments.default(value))) {
    return !value.length;
  }
  var tag = _getTag.default(value);
  if (tag == mapTag || tag == setTag) {
    return !value.size;
  }
  if (_isPrototype.default(value)) {
    return !_baseKeys.default(value).length;
  }
  for (var key in value) {
    if (hasOwnProperty.call(value, key)) {
      return false;
    }
  }
  return true;
}
exports.default = isEmpty;
//# sourceMappingURL=isEmpty2.cjs.map
