es-toolkit 1.26.1-dev.836 → 1.26.1-dev.837

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,31 @@
1
+ import '../function/partial.mjs';
2
+ import '../function/partialRight.mjs';
3
+ import { getSymbols } from '../compat/_internal/getSymbols.mjs';
4
+ import '../string/deburr.mjs';
5
+ import { isArrayLike } from '../compat/predicate/isArrayLike.mjs';
6
+ import '../compat/function/bind.mjs';
7
+ import '../compat/function/bindKey.mjs';
8
+ import '../compat/function/curry.mjs';
9
+ import '../compat/function/curryRight.mjs';
10
+
11
+ function isEmpty(value) {
12
+ if (value == null) {
13
+ return true;
14
+ }
15
+ if (isArrayLike(value)) {
16
+ return value.length === 0;
17
+ }
18
+ if (value instanceof Map || value instanceof Set) {
19
+ return value.size === 0;
20
+ }
21
+ switch (typeof value) {
22
+ case 'object': {
23
+ return Object.keys(value).length === 0 && getSymbols(value).length === 0;
24
+ }
25
+ default: {
26
+ return true;
27
+ }
28
+ }
29
+ }
30
+
31
+ export { isEmpty };
@@ -2,7 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const upperFirst = require('../_chunk/upperFirst-BUECmK.js');
5
+ const upperFirst = require('../_chunk/upperFirst-Dk8IW1.js');
6
+ const deburr = require('../_chunk/deburr-BPmkoM.js');
6
7
 
7
8
  function startCase(str) {
8
9
  const words = upperFirst.getWords(str.trim());
@@ -20,7 +21,6 @@ function startCase(str) {
20
21
  exports.camelCase = upperFirst.camelCase;
21
22
  exports.capitalize = upperFirst.capitalize;
22
23
  exports.constantCase = upperFirst.constantCase;
23
- exports.deburr = upperFirst.deburr;
24
24
  exports.escape = upperFirst.escape;
25
25
  exports.escapeRegExp = upperFirst.escapeRegExp;
26
26
  exports.kebabCase = upperFirst.kebabCase;
@@ -35,4 +35,5 @@ exports.trimStart = upperFirst.trimStart;
35
35
  exports.unescape = upperFirst.unescape;
36
36
  exports.upperCase = upperFirst.upperCase;
37
37
  exports.upperFirst = upperFirst.upperFirst;
38
+ exports.deburr = deburr.deburr;
38
39
  exports.startCase = startCase;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "es-toolkit",
3
3
  "description": "A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.",
4
- "version": "1.26.1-dev.836+e94c4012",
4
+ "version": "1.26.1-dev.837+9ebaa982",
5
5
  "homepage": "https://es-toolkit.slash.page",
6
6
  "bugs": "https://github.com/toss/es-toolkit/issues",
7
7
  "repository": {
@@ -1,5 +0,0 @@
1
- 'use strict';
2
-
3
- function noop() { }
4
-
5
- exports.noop = noop;