es-toolkit 1.17.0 → 1.18.0-dev.571

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 (220) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +1 -1
  3. package/dist/_chunk/{index-CoqN5B.js → index-BGZDR9.js} +4 -1
  4. package/dist/_chunk/{isTypedArray-BBEkFl.js → isTypedArray-Dsrnb1.js} +1 -11
  5. package/dist/_chunk/{isFunction-aCEz9d.js → isWeakSet-CogETi.js} +11 -1
  6. package/dist/_chunk/rest-CXt9w3.js +182 -0
  7. package/dist/_chunk/{toMerged-BGwYW5.js → toMerged-DN1PPP.js} +1 -1
  8. package/dist/_chunk/{initial-Ci2bn_.js → zipWith-CYaH1Y.js} +46 -70
  9. package/dist/array/countBy.d.mts +10 -0
  10. package/dist/array/countBy.d.ts +10 -0
  11. package/dist/array/fill.d.mts +55 -2
  12. package/dist/array/fill.d.ts +55 -2
  13. package/dist/array/flatMapDeep.d.mts +18 -0
  14. package/dist/array/flatMapDeep.d.ts +18 -0
  15. package/dist/array/flatMapDeep.mjs +7 -0
  16. package/dist/array/flattenDeep.d.mts +1 -1
  17. package/dist/array/flattenDeep.d.ts +1 -1
  18. package/dist/array/head.d.mts +14 -3
  19. package/dist/array/head.d.ts +14 -3
  20. package/dist/array/index.d.mts +9 -8
  21. package/dist/array/index.d.ts +9 -8
  22. package/dist/array/index.js +87 -58
  23. package/dist/array/index.mjs +9 -8
  24. package/dist/array/last.d.mts +23 -1
  25. package/dist/array/last.d.ts +23 -1
  26. package/dist/array/maxBy.d.mts +13 -1
  27. package/dist/array/maxBy.d.ts +13 -1
  28. package/dist/array/minBy.d.mts +13 -1
  29. package/dist/array/minBy.d.ts +13 -1
  30. package/dist/array/toFilled.d.mts +59 -2
  31. package/dist/array/toFilled.d.ts +59 -2
  32. package/dist/array/zip.d.mts +65 -7
  33. package/dist/array/zip.d.ts +65 -7
  34. package/dist/array/zipObject.d.mts +2 -4
  35. package/dist/array/zipObject.d.ts +2 -4
  36. package/dist/array/zipWith.d.mts +39 -6
  37. package/dist/array/zipWith.d.ts +39 -6
  38. package/dist/browser.global.js +1 -1
  39. package/dist/browser.global.js.map +1 -1
  40. package/dist/compat/_internal/compareValues.mjs +30 -5
  41. package/dist/compat/_internal/normalizeForCase.mjs +9 -0
  42. package/dist/compat/array/castArray.d.mts +29 -0
  43. package/dist/compat/array/castArray.d.ts +29 -0
  44. package/dist/compat/array/castArray.mjs +8 -0
  45. package/dist/compat/array/difference.d.mts +19 -0
  46. package/dist/compat/array/difference.d.ts +19 -0
  47. package/dist/compat/array/fill.d.mts +55 -2
  48. package/dist/compat/array/fill.d.ts +55 -2
  49. package/dist/compat/array/findLastIndex.d.mts +66 -0
  50. package/dist/compat/array/findLastIndex.d.ts +66 -0
  51. package/dist/compat/array/findLastIndex.mjs +33 -0
  52. package/dist/compat/array/join.d.mts +16 -0
  53. package/dist/compat/array/join.d.ts +16 -0
  54. package/dist/compat/array/join.mjs +5 -0
  55. package/dist/compat/array/orderBy.d.mts +6 -6
  56. package/dist/compat/array/orderBy.d.ts +6 -6
  57. package/dist/compat/array/orderBy.mjs +26 -18
  58. package/dist/compat/array/some.d.mts +86 -0
  59. package/dist/compat/array/some.d.ts +86 -0
  60. package/dist/compat/array/some.mjs +36 -0
  61. package/dist/compat/array/sortBy.d.mts +34 -0
  62. package/dist/compat/array/sortBy.d.ts +34 -0
  63. package/dist/compat/array/sortBy.mjs +7 -0
  64. package/dist/compat/function/ary.d.mts +11 -1
  65. package/dist/compat/function/ary.d.ts +11 -1
  66. package/dist/compat/function/attempt.d.mts +33 -0
  67. package/dist/compat/function/attempt.d.ts +33 -0
  68. package/dist/compat/function/attempt.mjs +10 -0
  69. package/dist/compat/function/bindKey.d.mts +45 -0
  70. package/dist/compat/function/bindKey.d.ts +45 -0
  71. package/dist/compat/function/bindKey.mjs +27 -0
  72. package/dist/compat/function/rearg.d.mts +18 -0
  73. package/dist/compat/function/rearg.d.ts +18 -0
  74. package/dist/compat/function/rearg.mjs +14 -0
  75. package/dist/compat/function/spread.d.mts +47 -0
  76. package/dist/compat/function/spread.d.ts +47 -0
  77. package/dist/compat/function/spread.mjs +16 -0
  78. package/dist/compat/index.d.mts +31 -10
  79. package/dist/compat/index.d.ts +31 -10
  80. package/dist/compat/index.js +401 -143
  81. package/dist/compat/index.mjs +32 -11
  82. package/dist/compat/math/max.d.mts +16 -5
  83. package/dist/compat/math/max.d.ts +16 -5
  84. package/dist/compat/math/min.d.mts +16 -4
  85. package/dist/compat/math/min.d.ts +16 -4
  86. package/dist/compat/math/parseInt.d.mts +20 -0
  87. package/dist/compat/math/parseInt.d.ts +20 -0
  88. package/dist/compat/math/parseInt.mjs +8 -0
  89. package/dist/compat/object/fromPairs.d.mts +29 -0
  90. package/dist/compat/object/fromPairs.d.ts +29 -0
  91. package/dist/compat/object/fromPairs.mjs +14 -0
  92. package/dist/compat/predicate/conforms.d.mts +22 -0
  93. package/dist/compat/predicate/conforms.d.ts +22 -0
  94. package/dist/compat/predicate/conforms.mjs +11 -0
  95. package/dist/compat/predicate/conformsTo.d.mts +29 -0
  96. package/dist/compat/predicate/conformsTo.d.ts +29 -0
  97. package/dist/compat/predicate/conformsTo.mjs +18 -0
  98. package/dist/compat/predicate/isObject.d.mts +26 -0
  99. package/dist/compat/predicate/isObject.d.ts +26 -0
  100. package/dist/compat/predicate/isObject.mjs +5 -0
  101. package/dist/compat/predicate/isRegExp.d.mts +7 -0
  102. package/dist/compat/predicate/isRegExp.d.ts +7 -0
  103. package/dist/compat/predicate/isTypedArray.d.mts +10 -0
  104. package/dist/compat/predicate/isTypedArray.d.ts +10 -0
  105. package/dist/compat/predicate/isWeakMap.d.mts +23 -0
  106. package/dist/compat/predicate/isWeakMap.d.ts +23 -0
  107. package/dist/compat/predicate/isWeakMap.mjs +7 -0
  108. package/dist/compat/predicate/isWeakSet.d.mts +23 -0
  109. package/dist/compat/predicate/isWeakSet.d.ts +23 -0
  110. package/dist/compat/predicate/isWeakSet.mjs +7 -0
  111. package/dist/compat/string/camelCase.d.mts +18 -0
  112. package/dist/compat/string/camelCase.d.ts +18 -0
  113. package/dist/compat/string/camelCase.mjs +8 -0
  114. package/dist/compat/string/endsWith.d.mts +1 -1
  115. package/dist/compat/string/endsWith.d.ts +1 -1
  116. package/dist/compat/string/endsWith.mjs +2 -2
  117. package/dist/compat/string/repeat.d.mts +17 -0
  118. package/dist/compat/string/repeat.d.ts +17 -0
  119. package/dist/compat/string/repeat.mjs +5 -0
  120. package/dist/compat/string/startsWith.d.mts +1 -1
  121. package/dist/compat/string/startsWith.d.ts +1 -1
  122. package/dist/compat/string/startsWith.mjs +2 -2
  123. package/dist/function/after.d.mts +1 -1
  124. package/dist/function/after.d.ts +1 -1
  125. package/dist/function/after.mjs +2 -2
  126. package/dist/function/before.d.mts +1 -1
  127. package/dist/function/before.d.ts +1 -1
  128. package/dist/function/before.mjs +2 -2
  129. package/dist/function/debounce.d.mts +3 -3
  130. package/dist/function/debounce.d.ts +3 -3
  131. package/dist/function/index.d.mts +1 -0
  132. package/dist/function/index.d.ts +1 -0
  133. package/dist/function/index.js +22 -180
  134. package/dist/function/index.mjs +1 -0
  135. package/dist/function/memoize.d.mts +37 -1
  136. package/dist/function/memoize.d.ts +37 -1
  137. package/dist/function/negate.d.mts +7 -1
  138. package/dist/function/negate.d.ts +7 -1
  139. package/dist/function/spread.d.mts +19 -0
  140. package/dist/function/spread.d.ts +19 -0
  141. package/dist/function/spread.mjs +7 -0
  142. package/dist/function/unary.d.mts +7 -0
  143. package/dist/function/unary.d.ts +7 -0
  144. package/dist/index.d.mts +16 -8
  145. package/dist/index.d.ts +16 -8
  146. package/dist/index.js +89 -80
  147. package/dist/index.mjs +16 -8
  148. package/dist/math/clamp.d.mts +14 -3
  149. package/dist/math/clamp.d.ts +14 -3
  150. package/dist/math/random.d.mts +13 -2
  151. package/dist/math/random.d.ts +13 -2
  152. package/dist/math/randomInt.d.mts +11 -3
  153. package/dist/math/randomInt.d.ts +11 -3
  154. package/dist/math/range.d.mts +25 -0
  155. package/dist/math/range.d.ts +25 -0
  156. package/dist/object/index.js +1 -1
  157. package/dist/object/invert.d.mts +2 -4
  158. package/dist/object/invert.d.ts +2 -4
  159. package/dist/predicate/index.d.mts +2 -0
  160. package/dist/predicate/index.d.ts +2 -0
  161. package/dist/predicate/index.js +11 -9
  162. package/dist/predicate/index.mjs +2 -0
  163. package/dist/predicate/isPrimitive.d.mts +14 -0
  164. package/dist/predicate/isPrimitive.d.ts +14 -0
  165. package/dist/predicate/isRegExp.d.mts +8 -1
  166. package/dist/predicate/isRegExp.d.ts +8 -1
  167. package/dist/predicate/isSymbol.d.mts +15 -0
  168. package/dist/predicate/isSymbol.d.ts +15 -0
  169. package/dist/predicate/isTypedArray.d.mts +10 -0
  170. package/dist/predicate/isTypedArray.d.ts +10 -0
  171. package/dist/predicate/isTypedArray.mjs +1 -11
  172. package/dist/predicate/isWeakMap.d.mts +23 -0
  173. package/dist/predicate/isWeakMap.d.ts +23 -0
  174. package/dist/predicate/isWeakMap.mjs +5 -0
  175. package/dist/predicate/isWeakSet.d.mts +23 -0
  176. package/dist/predicate/isWeakSet.d.ts +23 -0
  177. package/dist/predicate/isWeakSet.mjs +5 -0
  178. package/dist/promise/delay.mjs +4 -1
  179. package/dist/promise/index.js +1 -1
  180. package/dist/promise/timeout.d.mts +7 -0
  181. package/dist/promise/timeout.d.ts +7 -0
  182. package/dist/string/capitalize.d.mts +1 -1
  183. package/dist/string/capitalize.d.ts +1 -1
  184. package/dist/string/capitalize.mjs +2 -2
  185. package/dist/string/deburr.mjs +5 -5
  186. package/dist/string/escape.d.mts +16 -0
  187. package/dist/string/escape.d.ts +16 -0
  188. package/dist/string/escape.mjs +12 -0
  189. package/dist/string/escapeRegExp.d.mts +14 -0
  190. package/dist/string/escapeRegExp.d.ts +14 -0
  191. package/dist/string/escapeRegExp.mjs +5 -0
  192. package/dist/string/index.d.mts +4 -0
  193. package/dist/string/index.d.ts +4 -0
  194. package/dist/string/index.js +53 -19
  195. package/dist/string/index.mjs +4 -0
  196. package/dist/string/kebabCase.d.mts +1 -1
  197. package/dist/string/kebabCase.d.ts +1 -1
  198. package/dist/string/kebabCase.mjs +2 -2
  199. package/dist/string/lowerCase.d.mts +1 -1
  200. package/dist/string/lowerCase.d.ts +1 -1
  201. package/dist/string/lowerCase.mjs +2 -2
  202. package/dist/string/lowerFirst.d.mts +1 -1
  203. package/dist/string/lowerFirst.d.ts +1 -1
  204. package/dist/string/lowerFirst.mjs +2 -2
  205. package/dist/string/pad.d.mts +19 -0
  206. package/dist/string/pad.d.ts +19 -0
  207. package/dist/string/pad.mjs +5 -0
  208. package/dist/string/pascalCase.d.mts +1 -1
  209. package/dist/string/pascalCase.d.ts +1 -1
  210. package/dist/string/pascalCase.mjs +2 -2
  211. package/dist/string/snakeCase.d.mts +1 -1
  212. package/dist/string/snakeCase.d.ts +1 -1
  213. package/dist/string/snakeCase.mjs +2 -2
  214. package/dist/string/unescape.d.mts +16 -0
  215. package/dist/string/unescape.d.ts +16 -0
  216. package/dist/string/unescape.mjs +12 -0
  217. package/dist/string/upperFirst.d.mts +1 -1
  218. package/dist/string/upperFirst.d.ts +1 -1
  219. package/dist/string/upperFirst.mjs +2 -2
  220. package/package.json +7 -2
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Creates a new function that spreads elements of an array argument into individual arguments
3
+ * for the original function. The array argument is positioned based on the `argsIndex` parameter.
4
+ *
5
+ * @template F - A function type with any number of parameters and any return type.
6
+ * @param {F} func - The function to be transformed. It can be any function with any number of arguments.
7
+ * @param {number} [argsIndex=0] - The index where the array argument is positioned among the other arguments.
8
+ * If `argsIndex` is negative or `NaN`, it defaults to `0`. If it's a fractional number, it is rounded to the nearest integer.
9
+ * @returns {(...args: any[]) => ReturnType<F>} - A new function that takes multiple arguments, including an array of arguments at the specified `argsIndex`,
10
+ * and returns the result of calling the original function with those arguments.
11
+ *
12
+ * @example
13
+ * function add(a, b) {
14
+ * return a + b;
15
+ * }
16
+ *
17
+ * const spreadAdd = spread(add);
18
+ * console.log(spreadAdd([1, 2])); // Output: 3
19
+ *
20
+ * @example
21
+ * // Example function to spread arguments over
22
+ * function add(a, b) {
23
+ * return a + b;
24
+ * }
25
+ *
26
+ * // Create a new function that uses `spread` to combine arguments
27
+ * const spreadAdd = spread(add, 1);
28
+ *
29
+ * // Calling `spreadAdd` with an array as the second argument
30
+ * console.log(spreadAdd(1, [2])); // Output: 3
31
+ *
32
+ * @example
33
+ * // Function with default arguments
34
+ * function greet(name, greeting = 'Hello') {
35
+ * return `${greeting}, ${name}!`;
36
+ * }
37
+ *
38
+ * // Create a new function that uses `spread` to position the argument array at index 0
39
+ * const spreadGreet = spread(greet, 0);
40
+ *
41
+ * // Calling `spreadGreet` with an array of arguments
42
+ * console.log(spreadGreet(['Alice'])); // Output: Hello, Alice!
43
+ * console.log(spreadGreet(['Bob', 'Hi'])); // Output: Hi, Bob!
44
+ */
45
+ declare function spread<F extends (...args: any[]) => any>(func: F, argsIndex?: number): (...args: any[]) => ReturnType<F>;
46
+
47
+ export { spread };
@@ -0,0 +1,16 @@
1
+ function spread(func, argsIndex = 0) {
2
+ argsIndex = Number.parseInt(argsIndex, 10);
3
+ if (Number.isNaN(argsIndex) || argsIndex < 0) {
4
+ argsIndex = 0;
5
+ }
6
+ return function (...args) {
7
+ const array = args[argsIndex];
8
+ const params = args.slice(0, argsIndex);
9
+ if (array) {
10
+ params.push(...array);
11
+ }
12
+ return func.apply(this, params);
13
+ };
14
+ }
15
+
16
+ export { spread };
@@ -8,24 +8,30 @@ export { dropRight } from '../array/dropRight.mjs';
8
8
  export { dropRightWhile } from '../array/dropRightWhile.mjs';
9
9
  export { dropWhile } from '../array/dropWhile.mjs';
10
10
  export { flatMap } from '../array/flatMap.mjs';
11
+ export { flatMapDeep } from '../array/flatMapDeep.mjs';
11
12
  export { forEachRight } from '../array/forEachRight.mjs';
12
13
  export { groupBy } from '../array/groupBy.mjs';
14
+ export { head as first, head } from '../array/head.mjs';
15
+ export { initial } from '../array/initial.mjs';
13
16
  export { intersection } from '../array/intersection.mjs';
14
17
  export { intersectionBy } from '../array/intersectionBy.mjs';
15
18
  export { intersectionWith } from '../array/intersectionWith.mjs';
19
+ export { isSubset } from '../array/isSubset.mjs';
16
20
  export { keyBy } from '../array/keyBy.mjs';
21
+ export { last } from '../array/last.mjs';
17
22
  export { maxBy } from '../array/maxBy.mjs';
18
23
  export { minBy } from '../array/minBy.mjs';
19
24
  export { partition } from '../array/partition.mjs';
20
25
  export { pullAt } from '../array/pullAt.mjs';
21
- export { sortBy } from '../array/sortBy.mjs';
22
26
  export { sample } from '../array/sample.mjs';
23
27
  export { sampleSize } from '../array/sampleSize.mjs';
24
28
  export { shuffle } from '../array/shuffle.mjs';
29
+ export { tail } from '../array/tail.mjs';
25
30
  export { take } from '../array/take.mjs';
26
31
  export { takeRight } from '../array/takeRight.mjs';
27
32
  export { takeRightWhile } from '../array/takeRightWhile.mjs';
28
33
  export { takeWhile } from '../array/takeWhile.mjs';
34
+ export { toFilled } from '../array/toFilled.mjs';
29
35
  export { union } from '../array/union.mjs';
30
36
  export { unionBy } from '../array/unionBy.mjs';
31
37
  export { unionWith } from '../array/unionWith.mjs';
@@ -34,19 +40,13 @@ export { uniqBy } from '../array/uniqBy.mjs';
34
40
  export { uniqWith } from '../array/uniqWith.mjs';
35
41
  export { unzip } from '../array/unzip.mjs';
36
42
  export { unzipWith } from '../array/unzipWith.mjs';
43
+ export { without } from '../array/without.mjs';
37
44
  export { xor } from '../array/xor.mjs';
38
45
  export { xorBy } from '../array/xorBy.mjs';
39
46
  export { xorWith } from '../array/xorWith.mjs';
40
47
  export { zip } from '../array/zip.mjs';
41
48
  export { zipObject } from '../array/zipObject.mjs';
42
49
  export { zipWith } from '../array/zipWith.mjs';
43
- export { without } from '../array/without.mjs';
44
- export { head as first, head } from '../array/head.mjs';
45
- export { isSubset } from '../array/isSubset.mjs';
46
- export { tail } from '../array/tail.mjs';
47
- export { toFilled } from '../array/toFilled.mjs';
48
- export { last } from '../array/last.mjs';
49
- export { initial } from '../array/initial.mjs';
50
50
  export { AbortError } from '../error/AbortError.mjs';
51
51
  export { TimeoutError } from '../error/TimeoutError.mjs';
52
52
  export { before } from '../function/before.mjs';
@@ -90,7 +90,6 @@ export { isPrimitive } from '../predicate/isPrimitive.mjs';
90
90
  export { delay } from '../promise/delay.mjs';
91
91
  export { withTimeout } from '../promise/withTimeout.mjs';
92
92
  export { timeout } from '../promise/timeout.mjs';
93
- export { camelCase } from '../string/camelCase.mjs';
94
93
  export { snakeCase } from '../string/snakeCase.mjs';
95
94
  export { kebabCase } from '../string/kebabCase.mjs';
96
95
  export { lowerCase } from '../string/lowerCase.mjs';
@@ -100,22 +99,35 @@ export { pascalCase } from '../string/pascalCase.mjs';
100
99
  export { upperFirst } from '../string/upperFirst.mjs';
101
100
  export { lowerFirst } from '../string/lowerFirst.mjs';
102
101
  export { deburr } from '../string/deburr.mjs';
102
+ export { escape } from '../string/escape.mjs';
103
+ export { escapeRegExp } from '../string/escapeRegExp.mjs';
104
+ export { unescape } from '../string/unescape.mjs';
105
+ export { pad } from '../string/pad.mjs';
106
+ export { castArray } from './array/castArray.mjs';
103
107
  export { chunk } from './array/chunk.mjs';
104
108
  export { concat } from './array/concat.mjs';
105
109
  export { difference } from './array/difference.mjs';
106
110
  export { fill } from './array/fill.mjs';
107
111
  export { find } from './array/find.mjs';
108
112
  export { findIndex } from './array/findIndex.mjs';
113
+ export { findLastIndex } from './array/findLastIndex.mjs';
109
114
  export { flatten } from './array/flatten.mjs';
110
115
  export { flattenDeep } from './array/flattenDeep.mjs';
111
116
  export { flattenDepth } from './array/flattenDepth.mjs';
117
+ export { indexOf } from './array/indexOf.mjs';
118
+ export { join } from './array/join.mjs';
112
119
  export { orderBy } from './array/orderBy.mjs';
120
+ export { sortBy } from './array/sortBy.mjs';
113
121
  export { size } from './array/size.mjs';
122
+ export { some } from './array/some.mjs';
114
123
  export { zipObjectDeep } from './array/zipObjectDeep.mjs';
115
- export { indexOf } from './array/indexOf.mjs';
116
124
  export { ary } from './function/ary.mjs';
117
125
  export { bind } from './function/bind.mjs';
126
+ export { bindKey } from './function/bindKey.mjs';
118
127
  export { rest } from './function/rest.mjs';
128
+ export { spread } from './function/spread.mjs';
129
+ export { attempt } from './function/attempt.mjs';
130
+ export { rearg } from './function/rearg.mjs';
119
131
  export { get } from './object/get.mjs';
120
132
  export { set } from './object/set.mjs';
121
133
  export { has } from './object/has.mjs';
@@ -124,11 +136,13 @@ export { mapKeys } from './object/mapKeys.mjs';
124
136
  export { mapValues } from './object/mapValues.mjs';
125
137
  export { merge } from './object/merge.mjs';
126
138
  export { mergeWith } from './object/mergeWith.mjs';
139
+ export { fromPairs } from './object/fromPairs.mjs';
127
140
  export { isPlainObject } from './predicate/isPlainObject.mjs';
128
141
  export { isArray } from './predicate/isArray.mjs';
129
142
  export { isArguments } from './predicate/isArguments.mjs';
130
143
  export { isArrayLike } from './predicate/isArrayLike.mjs';
131
144
  export { isSymbol } from './predicate/isSymbol.mjs';
145
+ export { isObject } from './predicate/isObject.mjs';
132
146
  export { isObjectLike } from './predicate/isObjectLike.mjs';
133
147
  export { isBoolean } from './predicate/isBoolean.mjs';
134
148
  export { isTypedArray } from './predicate/isTypedArray.mjs';
@@ -137,9 +151,16 @@ export { isRegExp } from './predicate/isRegExp.mjs';
137
151
  export { isString } from './predicate/isString.mjs';
138
152
  export { matches } from './predicate/matches.mjs';
139
153
  export { matchesProperty } from './predicate/matchesProperty.mjs';
154
+ export { isWeakMap } from './predicate/isWeakMap.mjs';
155
+ export { isWeakSet } from './predicate/isWeakSet.mjs';
156
+ export { conforms } from './predicate/conforms.mjs';
157
+ export { conformsTo } from './predicate/conformsTo.mjs';
158
+ export { camelCase } from './string/camelCase.mjs';
140
159
  export { startsWith } from './string/startsWith.mjs';
141
160
  export { endsWith } from './string/endsWith.mjs';
142
161
  export { padStart } from './string/padStart.mjs';
143
162
  export { padEnd } from './string/padEnd.mjs';
163
+ export { repeat } from './string/repeat.mjs';
144
164
  export { max } from './math/max.mjs';
145
165
  export { min } from './math/min.mjs';
166
+ export { parseInt } from './math/parseInt.mjs';
@@ -8,24 +8,30 @@ export { dropRight } from '../array/dropRight.js';
8
8
  export { dropRightWhile } from '../array/dropRightWhile.js';
9
9
  export { dropWhile } from '../array/dropWhile.js';
10
10
  export { flatMap } from '../array/flatMap.js';
11
+ export { flatMapDeep } from '../array/flatMapDeep.js';
11
12
  export { forEachRight } from '../array/forEachRight.js';
12
13
  export { groupBy } from '../array/groupBy.js';
14
+ export { head as first, head } from '../array/head.js';
15
+ export { initial } from '../array/initial.js';
13
16
  export { intersection } from '../array/intersection.js';
14
17
  export { intersectionBy } from '../array/intersectionBy.js';
15
18
  export { intersectionWith } from '../array/intersectionWith.js';
19
+ export { isSubset } from '../array/isSubset.js';
16
20
  export { keyBy } from '../array/keyBy.js';
21
+ export { last } from '../array/last.js';
17
22
  export { maxBy } from '../array/maxBy.js';
18
23
  export { minBy } from '../array/minBy.js';
19
24
  export { partition } from '../array/partition.js';
20
25
  export { pullAt } from '../array/pullAt.js';
21
- export { sortBy } from '../array/sortBy.js';
22
26
  export { sample } from '../array/sample.js';
23
27
  export { sampleSize } from '../array/sampleSize.js';
24
28
  export { shuffle } from '../array/shuffle.js';
29
+ export { tail } from '../array/tail.js';
25
30
  export { take } from '../array/take.js';
26
31
  export { takeRight } from '../array/takeRight.js';
27
32
  export { takeRightWhile } from '../array/takeRightWhile.js';
28
33
  export { takeWhile } from '../array/takeWhile.js';
34
+ export { toFilled } from '../array/toFilled.js';
29
35
  export { union } from '../array/union.js';
30
36
  export { unionBy } from '../array/unionBy.js';
31
37
  export { unionWith } from '../array/unionWith.js';
@@ -34,19 +40,13 @@ export { uniqBy } from '../array/uniqBy.js';
34
40
  export { uniqWith } from '../array/uniqWith.js';
35
41
  export { unzip } from '../array/unzip.js';
36
42
  export { unzipWith } from '../array/unzipWith.js';
43
+ export { without } from '../array/without.js';
37
44
  export { xor } from '../array/xor.js';
38
45
  export { xorBy } from '../array/xorBy.js';
39
46
  export { xorWith } from '../array/xorWith.js';
40
47
  export { zip } from '../array/zip.js';
41
48
  export { zipObject } from '../array/zipObject.js';
42
49
  export { zipWith } from '../array/zipWith.js';
43
- export { without } from '../array/without.js';
44
- export { head as first, head } from '../array/head.js';
45
- export { isSubset } from '../array/isSubset.js';
46
- export { tail } from '../array/tail.js';
47
- export { toFilled } from '../array/toFilled.js';
48
- export { last } from '../array/last.js';
49
- export { initial } from '../array/initial.js';
50
50
  export { AbortError } from '../error/AbortError.js';
51
51
  export { TimeoutError } from '../error/TimeoutError.js';
52
52
  export { before } from '../function/before.js';
@@ -90,7 +90,6 @@ export { isPrimitive } from '../predicate/isPrimitive.js';
90
90
  export { delay } from '../promise/delay.js';
91
91
  export { withTimeout } from '../promise/withTimeout.js';
92
92
  export { timeout } from '../promise/timeout.js';
93
- export { camelCase } from '../string/camelCase.js';
94
93
  export { snakeCase } from '../string/snakeCase.js';
95
94
  export { kebabCase } from '../string/kebabCase.js';
96
95
  export { lowerCase } from '../string/lowerCase.js';
@@ -100,22 +99,35 @@ export { pascalCase } from '../string/pascalCase.js';
100
99
  export { upperFirst } from '../string/upperFirst.js';
101
100
  export { lowerFirst } from '../string/lowerFirst.js';
102
101
  export { deburr } from '../string/deburr.js';
102
+ export { escape } from '../string/escape.js';
103
+ export { escapeRegExp } from '../string/escapeRegExp.js';
104
+ export { unescape } from '../string/unescape.js';
105
+ export { pad } from '../string/pad.js';
106
+ export { castArray } from './array/castArray.js';
103
107
  export { chunk } from './array/chunk.js';
104
108
  export { concat } from './array/concat.js';
105
109
  export { difference } from './array/difference.js';
106
110
  export { fill } from './array/fill.js';
107
111
  export { find } from './array/find.js';
108
112
  export { findIndex } from './array/findIndex.js';
113
+ export { findLastIndex } from './array/findLastIndex.js';
109
114
  export { flatten } from './array/flatten.js';
110
115
  export { flattenDeep } from './array/flattenDeep.js';
111
116
  export { flattenDepth } from './array/flattenDepth.js';
117
+ export { indexOf } from './array/indexOf.js';
118
+ export { join } from './array/join.js';
112
119
  export { orderBy } from './array/orderBy.js';
120
+ export { sortBy } from './array/sortBy.js';
113
121
  export { size } from './array/size.js';
122
+ export { some } from './array/some.js';
114
123
  export { zipObjectDeep } from './array/zipObjectDeep.js';
115
- export { indexOf } from './array/indexOf.js';
116
124
  export { ary } from './function/ary.js';
117
125
  export { bind } from './function/bind.js';
126
+ export { bindKey } from './function/bindKey.js';
118
127
  export { rest } from './function/rest.js';
128
+ export { spread } from './function/spread.js';
129
+ export { attempt } from './function/attempt.js';
130
+ export { rearg } from './function/rearg.js';
119
131
  export { get } from './object/get.js';
120
132
  export { set } from './object/set.js';
121
133
  export { has } from './object/has.js';
@@ -124,11 +136,13 @@ export { mapKeys } from './object/mapKeys.js';
124
136
  export { mapValues } from './object/mapValues.js';
125
137
  export { merge } from './object/merge.js';
126
138
  export { mergeWith } from './object/mergeWith.js';
139
+ export { fromPairs } from './object/fromPairs.js';
127
140
  export { isPlainObject } from './predicate/isPlainObject.js';
128
141
  export { isArray } from './predicate/isArray.js';
129
142
  export { isArguments } from './predicate/isArguments.js';
130
143
  export { isArrayLike } from './predicate/isArrayLike.js';
131
144
  export { isSymbol } from './predicate/isSymbol.js';
145
+ export { isObject } from './predicate/isObject.js';
132
146
  export { isObjectLike } from './predicate/isObjectLike.js';
133
147
  export { isBoolean } from './predicate/isBoolean.js';
134
148
  export { isTypedArray } from './predicate/isTypedArray.js';
@@ -137,9 +151,16 @@ export { isRegExp } from './predicate/isRegExp.js';
137
151
  export { isString } from './predicate/isString.js';
138
152
  export { matches } from './predicate/matches.js';
139
153
  export { matchesProperty } from './predicate/matchesProperty.js';
154
+ export { isWeakMap } from './predicate/isWeakMap.js';
155
+ export { isWeakSet } from './predicate/isWeakSet.js';
156
+ export { conforms } from './predicate/conforms.js';
157
+ export { conformsTo } from './predicate/conformsTo.js';
158
+ export { camelCase } from './string/camelCase.js';
140
159
  export { startsWith } from './string/startsWith.js';
141
160
  export { endsWith } from './string/endsWith.js';
142
161
  export { padStart } from './string/padStart.js';
143
162
  export { padEnd } from './string/padEnd.js';
163
+ export { repeat } from './string/repeat.js';
144
164
  export { max } from './math/max.js';
145
165
  export { min } from './math/min.js';
166
+ export { parseInt } from './math/parseInt.js';