es-toolkit 1.9.0-dev.191 → 1.9.0-dev.193

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.
Files changed (112) hide show
  1. package/dist/array/chunk.mjs +1 -1
  2. package/dist/array/compact.mjs +1 -1
  3. package/dist/array/countBy.mjs +1 -1
  4. package/dist/array/difference.mjs +1 -1
  5. package/dist/array/differenceBy.mjs +1 -1
  6. package/dist/array/differenceWith.mjs +1 -1
  7. package/dist/array/drop.mjs +1 -1
  8. package/dist/array/dropRight.mjs +1 -1
  9. package/dist/array/dropRightWhile.mjs +1 -1
  10. package/dist/array/dropWhile.mjs +1 -1
  11. package/dist/array/fill.mjs +1 -1
  12. package/dist/array/flatten.mjs +1 -1
  13. package/dist/array/flattenDeep.mjs +1 -1
  14. package/dist/array/forEachRight.mjs +1 -1
  15. package/dist/array/groupBy.mjs +1 -1
  16. package/dist/array/head.mjs +1 -1
  17. package/dist/array/index.mjs +1 -1
  18. package/dist/array/initial.mjs +1 -1
  19. package/dist/array/intersection.mjs +1 -1
  20. package/dist/array/intersectionBy.mjs +1 -1
  21. package/dist/array/intersectionWith.mjs +1 -1
  22. package/dist/array/keyBy.mjs +1 -1
  23. package/dist/array/last.mjs +1 -1
  24. package/dist/array/maxBy.mjs +1 -1
  25. package/dist/array/minBy.mjs +1 -1
  26. package/dist/array/orderBy.mjs +1 -1
  27. package/dist/array/partition.mjs +1 -1
  28. package/dist/array/sample.mjs +1 -1
  29. package/dist/array/sampleSize.mjs +1 -1
  30. package/dist/array/shuffle.mjs +1 -1
  31. package/dist/array/tail.mjs +1 -1
  32. package/dist/array/take.mjs +1 -1
  33. package/dist/array/takeRight.mjs +1 -1
  34. package/dist/array/takeRightWhile.mjs +1 -1
  35. package/dist/array/takeWhile.mjs +1 -1
  36. package/dist/array/toFilled.mjs +1 -1
  37. package/dist/array/union.mjs +1 -1
  38. package/dist/array/unionBy.mjs +1 -1
  39. package/dist/array/unionWith.mjs +1 -1
  40. package/dist/array/uniq.mjs +1 -1
  41. package/dist/array/uniqBy.mjs +1 -1
  42. package/dist/array/uniqWith.mjs +1 -1
  43. package/dist/array/unzip.mjs +1 -1
  44. package/dist/array/unzipWith.mjs +1 -1
  45. package/dist/array/without.mjs +1 -1
  46. package/dist/array/xor.mjs +1 -1
  47. package/dist/array/xorBy.mjs +1 -1
  48. package/dist/array/xorWith.mjs +1 -1
  49. package/dist/array/zip.mjs +1 -1
  50. package/dist/array/zipObject.mjs +1 -1
  51. package/dist/array/zipWith.mjs +1 -1
  52. package/dist/chunk-2HIMLZE3.mjs +46 -0
  53. package/dist/{chunk-QZITBKWX.mjs → chunk-4E4D3BMI.mjs} +2 -2
  54. package/dist/chunk-QKYYOLJ6.mjs +1 -0
  55. package/dist/chunk-XGCYC4YA.mjs +5516 -0
  56. package/dist/chunk-XGCYC4YA.mjs.map +1 -0
  57. package/dist/error/AbortError.mjs +1 -1
  58. package/dist/error/index.mjs +1 -1
  59. package/dist/function/debounce.mjs +1 -1
  60. package/dist/function/index.mjs +1 -1
  61. package/dist/function/noop.mjs +1 -1
  62. package/dist/function/once.mjs +1 -1
  63. package/dist/function/throttle.mjs +1 -1
  64. package/dist/index.d.mts +1 -0
  65. package/dist/index.d.ts +1 -0
  66. package/dist/index.js +5523 -2
  67. package/dist/index.js.map +1 -1
  68. package/dist/index.mjs +7 -3
  69. package/dist/math/clamp.mjs +1 -1
  70. package/dist/math/inRange.mjs +1 -1
  71. package/dist/math/index.mjs +1 -1
  72. package/dist/math/mean.mjs +1 -1
  73. package/dist/math/meanBy.mjs +1 -1
  74. package/dist/math/random.mjs +1 -1
  75. package/dist/math/randomInt.mjs +1 -1
  76. package/dist/math/range.mjs +1 -1
  77. package/dist/math/round.mjs +1 -1
  78. package/dist/math/sum.mjs +1 -1
  79. package/dist/object/index.mjs +2 -2
  80. package/dist/object/invert.mjs +1 -1
  81. package/dist/object/omit.mjs +2 -2
  82. package/dist/object/omitBy.mjs +1 -1
  83. package/dist/object/pick.mjs +1 -1
  84. package/dist/object/pickBy.mjs +1 -1
  85. package/dist/predicate/index.mjs +1 -1
  86. package/dist/predicate/isNil.mjs +1 -1
  87. package/dist/predicate/isNotNil.mjs +1 -1
  88. package/dist/predicate/isNull.mjs +1 -1
  89. package/dist/predicate/isUndefined.mjs +1 -1
  90. package/dist/promise/delay.mjs +1 -1
  91. package/dist/promise/index.mjs +1 -1
  92. package/dist/string/camelCase.d.mts +17 -0
  93. package/dist/string/camelCase.d.ts +17 -0
  94. package/dist/string/camelCase.js +5554 -0
  95. package/dist/string/camelCase.js.map +1 -0
  96. package/dist/string/camelCase.mjs +9 -0
  97. package/dist/string/camelCase.mjs.map +1 -0
  98. package/dist/string/capitalize.mjs +1 -1
  99. package/dist/string/index.d.mts +1 -0
  100. package/dist/string/index.d.ts +1 -0
  101. package/dist/string/index.js +5523 -2
  102. package/dist/string/index.js.map +1 -1
  103. package/dist/string/index.mjs +6 -2
  104. package/dist/string/kebabCase.mjs +1 -1
  105. package/dist/string/lowerCase.mjs +1 -1
  106. package/dist/string/snakeCase.mjs +1 -1
  107. package/package.json +1 -1
  108. package/dist/chunk-2MM5EJJX.mjs +0 -21
  109. package/dist/chunk-HXGADE4C.mjs +0 -1
  110. /package/dist/{chunk-2MM5EJJX.mjs.map → chunk-2HIMLZE3.mjs.map} +0 -0
  111. /package/dist/{chunk-QZITBKWX.mjs.map → chunk-4E4D3BMI.mjs.map} +0 -0
  112. /package/dist/{chunk-HXGADE4C.mjs.map → chunk-QKYYOLJ6.mjs.map} +0 -0
package/dist/index.mjs CHANGED
@@ -2,7 +2,10 @@ import "./chunk-ARZ5BDR6.mjs";
2
2
  import {
3
3
  delay
4
4
  } from "./chunk-O64NE2P4.mjs";
5
- import "./chunk-HXGADE4C.mjs";
5
+ import "./chunk-QKYYOLJ6.mjs";
6
+ import {
7
+ camelCase
8
+ } from "./chunk-XGCYC4YA.mjs";
6
9
  import {
7
10
  capitalize
8
11
  } from "./chunk-U56ZOM7L.mjs";
@@ -44,7 +47,7 @@ import {
44
47
  } from "./chunk-74WWMNZS.mjs";
45
48
  import {
46
49
  omit
47
- } from "./chunk-QZITBKWX.mjs";
50
+ } from "./chunk-4E4D3BMI.mjs";
48
51
  import "./chunk-TLVQSNOE.mjs";
49
52
  import {
50
53
  range
@@ -241,9 +244,10 @@ import {
241
244
  import {
242
245
  throttle
243
246
  } from "./chunk-QOJGMVVR.mjs";
244
- import "./chunk-2MM5EJJX.mjs";
247
+ import "./chunk-2HIMLZE3.mjs";
245
248
  export {
246
249
  AbortError,
250
+ camelCase,
247
251
  capitalize,
248
252
  chunk,
249
253
  clamp,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  clamp
3
3
  } from "../chunk-MLCL773E.mjs";
4
- import "../chunk-2MM5EJJX.mjs";
4
+ import "../chunk-2HIMLZE3.mjs";
5
5
  export {
6
6
  clamp
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  inRange
3
3
  } from "../chunk-BH6HLGBA.mjs";
4
- import "../chunk-2MM5EJJX.mjs";
4
+ import "../chunk-2HIMLZE3.mjs";
5
5
  export {
6
6
  inRange
7
7
  };
@@ -26,7 +26,7 @@ import {
26
26
  import {
27
27
  random
28
28
  } from "../chunk-SYWMYQYJ.mjs";
29
- import "../chunk-2MM5EJJX.mjs";
29
+ import "../chunk-2HIMLZE3.mjs";
30
30
  export {
31
31
  clamp,
32
32
  inRange,
@@ -2,7 +2,7 @@ import {
2
2
  mean
3
3
  } from "../chunk-GDC64SYJ.mjs";
4
4
  import "../chunk-2SLTL4KL.mjs";
5
- import "../chunk-2MM5EJJX.mjs";
5
+ import "../chunk-2HIMLZE3.mjs";
6
6
  export {
7
7
  mean
8
8
  };
@@ -3,7 +3,7 @@ import {
3
3
  } from "../chunk-IZAD2S7R.mjs";
4
4
  import "../chunk-GDC64SYJ.mjs";
5
5
  import "../chunk-2SLTL4KL.mjs";
6
- import "../chunk-2MM5EJJX.mjs";
6
+ import "../chunk-2HIMLZE3.mjs";
7
7
  export {
8
8
  meanBy
9
9
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  random
3
3
  } from "../chunk-SYWMYQYJ.mjs";
4
- import "../chunk-2MM5EJJX.mjs";
4
+ import "../chunk-2HIMLZE3.mjs";
5
5
  export {
6
6
  random
7
7
  };
@@ -2,7 +2,7 @@ import {
2
2
  randomInt
3
3
  } from "../chunk-GIWAOOFY.mjs";
4
4
  import "../chunk-SYWMYQYJ.mjs";
5
- import "../chunk-2MM5EJJX.mjs";
5
+ import "../chunk-2HIMLZE3.mjs";
6
6
  export {
7
7
  randomInt
8
8
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  range
3
3
  } from "../chunk-DPH2KE6O.mjs";
4
- import "../chunk-2MM5EJJX.mjs";
4
+ import "../chunk-2HIMLZE3.mjs";
5
5
  export {
6
6
  range
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  round
3
3
  } from "../chunk-5PMKOZ2F.mjs";
4
- import "../chunk-2MM5EJJX.mjs";
4
+ import "../chunk-2HIMLZE3.mjs";
5
5
  export {
6
6
  round
7
7
  };
package/dist/math/sum.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  sum
3
3
  } from "../chunk-2SLTL4KL.mjs";
4
- import "../chunk-2MM5EJJX.mjs";
4
+ import "../chunk-2HIMLZE3.mjs";
5
5
  export {
6
6
  sum
7
7
  };
@@ -13,8 +13,8 @@ import {
13
13
  } from "../chunk-74WWMNZS.mjs";
14
14
  import {
15
15
  omit
16
- } from "../chunk-QZITBKWX.mjs";
17
- import "../chunk-2MM5EJJX.mjs";
16
+ } from "../chunk-4E4D3BMI.mjs";
17
+ import "../chunk-2HIMLZE3.mjs";
18
18
  export {
19
19
  invert,
20
20
  omit,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  invert
3
3
  } from "../chunk-74WWMNZS.mjs";
4
- import "../chunk-2MM5EJJX.mjs";
4
+ import "../chunk-2HIMLZE3.mjs";
5
5
  export {
6
6
  invert
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  omit
3
- } from "../chunk-QZITBKWX.mjs";
4
- import "../chunk-2MM5EJJX.mjs";
3
+ } from "../chunk-4E4D3BMI.mjs";
4
+ import "../chunk-2HIMLZE3.mjs";
5
5
  export {
6
6
  omit
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  omitBy
3
3
  } from "../chunk-BCTYOXT7.mjs";
4
- import "../chunk-2MM5EJJX.mjs";
4
+ import "../chunk-2HIMLZE3.mjs";
5
5
  export {
6
6
  omitBy
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  pick
3
3
  } from "../chunk-HPFDYUGP.mjs";
4
- import "../chunk-2MM5EJJX.mjs";
4
+ import "../chunk-2HIMLZE3.mjs";
5
5
  export {
6
6
  pick
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  pickBy
3
3
  } from "../chunk-6CLH5YZ2.mjs";
4
- import "../chunk-2MM5EJJX.mjs";
4
+ import "../chunk-2HIMLZE3.mjs";
5
5
  export {
6
6
  pickBy
7
7
  };
@@ -11,7 +11,7 @@ import {
11
11
  import {
12
12
  isUndefined
13
13
  } from "../chunk-VH2PV426.mjs";
14
- import "../chunk-2MM5EJJX.mjs";
14
+ import "../chunk-2HIMLZE3.mjs";
15
15
  export {
16
16
  isNil,
17
17
  isNotNil,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  isNil
3
3
  } from "../chunk-WMM7TZLG.mjs";
4
- import "../chunk-2MM5EJJX.mjs";
4
+ import "../chunk-2HIMLZE3.mjs";
5
5
  export {
6
6
  isNil
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  isNotNil
3
3
  } from "../chunk-BMRTZMRE.mjs";
4
- import "../chunk-2MM5EJJX.mjs";
4
+ import "../chunk-2HIMLZE3.mjs";
5
5
  export {
6
6
  isNotNil
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  isNull
3
3
  } from "../chunk-AIRSKN47.mjs";
4
- import "../chunk-2MM5EJJX.mjs";
4
+ import "../chunk-2HIMLZE3.mjs";
5
5
  export {
6
6
  isNull
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  isUndefined
3
3
  } from "../chunk-VH2PV426.mjs";
4
- import "../chunk-2MM5EJJX.mjs";
4
+ import "../chunk-2HIMLZE3.mjs";
5
5
  export {
6
6
  isUndefined
7
7
  };
@@ -2,7 +2,7 @@ import {
2
2
  delay
3
3
  } from "../chunk-O64NE2P4.mjs";
4
4
  import "../chunk-DXB7EZUQ.mjs";
5
- import "../chunk-2MM5EJJX.mjs";
5
+ import "../chunk-2HIMLZE3.mjs";
6
6
  export {
7
7
  delay
8
8
  };
@@ -3,7 +3,7 @@ import {
3
3
  delay
4
4
  } from "../chunk-O64NE2P4.mjs";
5
5
  import "../chunk-DXB7EZUQ.mjs";
6
- import "../chunk-2MM5EJJX.mjs";
6
+ import "../chunk-2HIMLZE3.mjs";
7
7
  export {
8
8
  delay
9
9
  };
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Converts a string to camel case.
3
+ *
4
+ * camel case is the naming convention in which each word is written in lowercase and separated by an underscore (_) character.
5
+ *
6
+ * @param {string} str - The string that is to be changed to camel case.
7
+ * @returns {string} - The converted string to camel case.
8
+ *
9
+ * @example
10
+ * const convertedStr1 = camelCase('camelCase') // returns 'camelCase'
11
+ * const convertedStr2 = camelCase('some whitespace') // returns 'someWhitespace'
12
+ * const convertedStr3 = camelCase('hyphen-text') // returns 'hyphenText'
13
+ * const convertedStr4 = camelCase('HTTPRequest') // returns 'httpRequest'
14
+ */
15
+ declare function camelCase(str: string): string;
16
+
17
+ export { camelCase };
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Converts a string to camel case.
3
+ *
4
+ * camel case is the naming convention in which each word is written in lowercase and separated by an underscore (_) character.
5
+ *
6
+ * @param {string} str - The string that is to be changed to camel case.
7
+ * @returns {string} - The converted string to camel case.
8
+ *
9
+ * @example
10
+ * const convertedStr1 = camelCase('camelCase') // returns 'camelCase'
11
+ * const convertedStr2 = camelCase('some whitespace') // returns 'someWhitespace'
12
+ * const convertedStr3 = camelCase('hyphen-text') // returns 'hyphenText'
13
+ * const convertedStr4 = camelCase('HTTPRequest') // returns 'httpRequest'
14
+ */
15
+ declare function camelCase(str: string): string;
16
+
17
+ export { camelCase };