es-toolkit 1.20.0 → 1.21.0-dev.662

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 (126) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/_chunk/{isWeakSet-E_VMwB.js → isWeakSet-1xFSnK.js} +5 -0
  3. package/dist/_chunk/{toMerged-Bzkqyz.js → toMerged-D-sLFv.js} +10 -8
  4. package/dist/_chunk/{zipWith-CDtN9Y.js → zipWith-DEcUS4.js} +25 -12
  5. package/dist/array/compact.d.mts +4 -4
  6. package/dist/array/compact.d.ts +4 -4
  7. package/dist/array/compact.mjs +2 -1
  8. package/dist/array/countBy.mjs +2 -1
  9. package/dist/array/flatten.mjs +2 -1
  10. package/dist/array/groupBy.mjs +2 -1
  11. package/dist/array/index.js +1 -1
  12. package/dist/array/keyBy.mjs +2 -1
  13. package/dist/array/maxBy.d.mts +16 -0
  14. package/dist/array/maxBy.d.ts +16 -0
  15. package/dist/array/maxBy.mjs +2 -1
  16. package/dist/array/minBy.d.mts +16 -0
  17. package/dist/array/minBy.d.ts +16 -0
  18. package/dist/array/minBy.mjs +2 -1
  19. package/dist/array/partition.mjs +2 -1
  20. package/dist/array/takeWhile.mjs +2 -1
  21. package/dist/array/unionBy.mjs +3 -1
  22. package/dist/array/uniqBy.mjs +2 -1
  23. package/dist/array/uniqWith.mjs +2 -1
  24. package/dist/browser.global.js +1 -1
  25. package/dist/browser.global.js.map +1 -1
  26. package/dist/compat/array/castArray.d.mts +2 -2
  27. package/dist/compat/array/castArray.d.ts +2 -2
  28. package/dist/compat/array/flatten.mjs +2 -1
  29. package/dist/compat/function/curry.mjs +26 -34
  30. package/dist/compat/function/defer.d.mts +16 -0
  31. package/dist/compat/function/defer.d.ts +16 -0
  32. package/dist/compat/function/defer.mjs +8 -0
  33. package/dist/compat/index.d.mts +13 -5
  34. package/dist/compat/index.d.ts +13 -5
  35. package/dist/compat/index.js +200 -71
  36. package/dist/compat/index.mjs +14 -6
  37. package/dist/compat/math/inRange.d.mts +27 -0
  38. package/dist/compat/math/inRange.d.ts +27 -0
  39. package/dist/compat/math/inRange.mjs +28 -0
  40. package/dist/compat/math/max.mjs +2 -1
  41. package/dist/compat/math/min.mjs +2 -1
  42. package/dist/compat/math/random.d.mts +50 -0
  43. package/dist/compat/math/random.d.ts +50 -0
  44. package/dist/compat/math/random.mjs +70 -0
  45. package/dist/compat/object/cloneDeep.d.mts +49 -0
  46. package/dist/compat/object/cloneDeep.d.ts +49 -0
  47. package/dist/compat/object/pick.mjs +2 -1
  48. package/dist/compat/predicate/conformsTo.mjs +3 -1
  49. package/dist/compat/predicate/isArrayLikeObject.d.mts +15 -0
  50. package/dist/compat/predicate/isArrayLikeObject.d.ts +15 -0
  51. package/dist/compat/predicate/isArrayLikeObject.mjs +8 -0
  52. package/dist/compat/predicate/isBoolean.d.mts +3 -3
  53. package/dist/compat/predicate/isBoolean.d.ts +3 -3
  54. package/dist/compat/predicate/isBoolean.mjs +2 -10
  55. package/dist/compat/predicate/isError.d.mts +16 -0
  56. package/dist/compat/predicate/isError.d.ts +16 -0
  57. package/dist/compat/predicate/isError.mjs +7 -0
  58. package/dist/compat/predicate/isFinite.d.mts +20 -0
  59. package/dist/compat/predicate/isFinite.d.ts +20 -0
  60. package/dist/compat/predicate/isFinite.mjs +5 -0
  61. package/dist/compat/predicate/isNil.d.mts +22 -0
  62. package/dist/compat/predicate/isNil.d.ts +22 -0
  63. package/dist/compat/predicate/isNumber.mjs +1 -6
  64. package/dist/compat/predicate/isRegExp.mjs +2 -2
  65. package/dist/compat/predicate/isString.d.mts +1 -1
  66. package/dist/compat/predicate/isString.d.ts +1 -1
  67. package/dist/compat/predicate/isString.mjs +1 -9
  68. package/dist/compat/predicate/isSymbol.mjs +1 -1
  69. package/dist/compat/string/pad.d.mts +19 -0
  70. package/dist/compat/string/pad.d.ts +19 -0
  71. package/dist/compat/string/pad.mjs +8 -0
  72. package/dist/compat/string/padEnd.mjs +3 -1
  73. package/dist/compat/string/padStart.mjs +3 -1
  74. package/dist/compat/util/toFinite.d.mts +17 -0
  75. package/dist/compat/util/toFinite.d.ts +17 -0
  76. package/dist/compat/util/toFinite.mjs +15 -0
  77. package/dist/compat/util/toInteger.d.mts +20 -0
  78. package/dist/compat/util/toInteger.d.ts +20 -0
  79. package/dist/compat/util/toInteger.mjs +9 -0
  80. package/dist/compat/util/toNumber.d.mts +19 -0
  81. package/dist/compat/util/toNumber.d.ts +19 -0
  82. package/dist/compat/util/toNumber.mjs +10 -0
  83. package/dist/function/curry.d.mts +18 -19
  84. package/dist/function/curry.d.ts +18 -19
  85. package/dist/index.d.mts +2 -0
  86. package/dist/index.d.ts +2 -0
  87. package/dist/index.js +10 -8
  88. package/dist/index.mjs +2 -0
  89. package/dist/math/random.d.mts +1 -1
  90. package/dist/math/random.d.ts +1 -1
  91. package/dist/math/range.d.mts +7 -25
  92. package/dist/math/range.d.ts +7 -25
  93. package/dist/object/index.js +8 -4
  94. package/dist/object/omit.d.mts +1 -1
  95. package/dist/object/omit.d.ts +1 -1
  96. package/dist/object/omit.mjs +2 -1
  97. package/dist/object/omitBy.mjs +5 -4
  98. package/dist/object/pick.mjs +5 -2
  99. package/dist/object/pickBy.mjs +5 -4
  100. package/dist/predicate/index.d.mts +1 -0
  101. package/dist/predicate/index.d.ts +1 -0
  102. package/dist/predicate/index.js +5 -4
  103. package/dist/predicate/index.mjs +1 -0
  104. package/dist/predicate/isError.d.mts +16 -0
  105. package/dist/predicate/isError.d.ts +16 -0
  106. package/dist/predicate/isError.mjs +5 -0
  107. package/dist/promise/withTimeout.d.mts +8 -2
  108. package/dist/promise/withTimeout.d.ts +8 -2
  109. package/dist/string/_internal/getWords.mjs +1 -1
  110. package/dist/string/camelCase.d.mts +1 -0
  111. package/dist/string/camelCase.d.ts +1 -0
  112. package/dist/string/constantCase.d.mts +17 -0
  113. package/dist/string/constantCase.d.ts +17 -0
  114. package/dist/string/constantCase.mjs +8 -0
  115. package/dist/string/index.d.mts +1 -0
  116. package/dist/string/index.d.ts +1 -0
  117. package/dist/string/index.js +10 -8
  118. package/dist/string/index.mjs +1 -0
  119. package/dist/string/startCase.d.mts +1 -1
  120. package/dist/string/startCase.d.ts +1 -1
  121. package/dist/string/startCase.mjs +3 -7
  122. package/dist/string/trimStart.d.mts +1 -1
  123. package/dist/string/trimStart.d.ts +1 -1
  124. package/dist/string/upperFirst.d.mts +3 -3
  125. package/dist/string/upperFirst.d.ts +3 -3
  126. package/package.json +2 -1
@@ -2,7 +2,7 @@
2
2
  * Casts value as an array if it's not one.
3
3
  *
4
4
  * @template T The type of elements in the array.
5
- * @param {T | readonly T[]} value The value to be cast to an array.
5
+ * @param {T | T[]} value The value to be cast to an array.
6
6
  * @returns {T[]} An array containing the input value if it wasn't an array, or the original array if it was.
7
7
  *
8
8
  * @example
@@ -15,7 +15,7 @@
15
15
  * const arr3 = castArray({'a': 1});
16
16
  * // Returns: [{'a': 1}]
17
17
  *
18
- * const arr4 = castArray(null);
18
+ * const arr4 = castArray(null);
19
19
  * // Returns: [null]
20
20
  *
21
21
  * const arr5 = castArray(undefined);
@@ -2,7 +2,7 @@
2
2
  * Casts value as an array if it's not one.
3
3
  *
4
4
  * @template T The type of elements in the array.
5
- * @param {T | readonly T[]} value The value to be cast to an array.
5
+ * @param {T | T[]} value The value to be cast to an array.
6
6
  * @returns {T[]} An array containing the input value if it wasn't an array, or the original array if it was.
7
7
  *
8
8
  * @example
@@ -15,7 +15,7 @@
15
15
  * const arr3 = castArray({'a': 1});
16
16
  * // Returns: [{'a': 1}]
17
17
  *
18
- * const arr4 = castArray(null);
18
+ * const arr4 = castArray(null);
19
19
  * // Returns: [null]
20
20
  *
21
21
  * const arr5 = castArray(undefined);
@@ -5,7 +5,8 @@ function flatten(value, depth = 1) {
5
5
  return result;
6
6
  }
7
7
  const recursive = (arr, currentDepth) => {
8
- for (const item of arr) {
8
+ for (let i = 0; i < arr.length; i++) {
9
+ const item = arr[i];
9
10
  if (currentDepth < flooredDepth &&
10
11
  (Array.isArray(item) ||
11
12
  Boolean(item?.[Symbol.isConcatSpreadable]) ||
@@ -4,60 +4,52 @@ function curry(func, arity = func.length, guard) {
4
4
  if (Number.isNaN(arity) || arity < 1) {
5
5
  arity = 0;
6
6
  }
7
- const wrapper = function (...partials) {
8
- const holders = replaceHolders(partials);
9
- const length = partials.length - holders.length;
7
+ const wrapper = function (...partialArgs) {
8
+ const holders = partialArgs.filter(item => item === curry.placeholder);
9
+ const length = partialArgs.length - holders.length;
10
10
  if (length < arity) {
11
- return makeCurry(func, holders, arity - length, partials);
11
+ return makeCurry(func, arity - length, partialArgs);
12
12
  }
13
13
  if (this instanceof wrapper) {
14
- return new func(...partials);
14
+ return new func(...partialArgs);
15
15
  }
16
- return func.apply(this, partials);
16
+ return func.apply(this, partialArgs);
17
17
  };
18
18
  wrapper.placeholder = curryPlaceholder;
19
19
  return wrapper;
20
20
  }
21
- function makeCurry(func, holders, arity, partials) {
22
- function wrapper(...args) {
23
- const holdersCount = args.filter(item => item === curry.placeholder).length;
24
- const length = args.length - holdersCount;
25
- args = composeArgs(args, partials, holders);
21
+ function makeCurry(func, arity, partialArgs) {
22
+ function wrapper(...providedArgs) {
23
+ const holders = providedArgs.filter(item => item === curry.placeholder);
24
+ const length = providedArgs.length - holders.length;
25
+ providedArgs = composeArgs(providedArgs, partialArgs);
26
26
  if (length < arity) {
27
- const newHolders = replaceHolders(args);
28
- return makeCurry(func, newHolders, arity - length, args);
27
+ return makeCurry(func, arity - length, providedArgs);
29
28
  }
30
29
  if (this instanceof wrapper) {
31
- return new func(...args);
30
+ return new func(...providedArgs);
32
31
  }
33
- return func.apply(this, args);
32
+ return func.apply(this, providedArgs);
34
33
  }
35
34
  wrapper.placeholder = curryPlaceholder;
36
35
  return wrapper;
37
36
  }
38
- function replaceHolders(args) {
39
- const result = [];
40
- for (let i = 0; i < args.length; i++) {
41
- if (args[i] === curry.placeholder) {
42
- result.push(i);
37
+ function composeArgs(providedArgs, partialArgs) {
38
+ const args = [];
39
+ let startIndex = 0;
40
+ for (let i = 0; i < partialArgs.length; i++) {
41
+ const arg = partialArgs[i];
42
+ if (arg === curry.placeholder && startIndex < providedArgs.length) {
43
+ args.push(providedArgs[startIndex++]);
43
44
  }
44
- }
45
- return result;
46
- }
47
- function composeArgs(args, partials, holders) {
48
- const result = [...partials];
49
- const argsLength = args.length;
50
- const holdersLength = holders.length;
51
- let argsIndex = -1, leftIndex = partials.length, rangeLength = Math.max(argsLength - holdersLength, 0);
52
- while (++argsIndex < holdersLength) {
53
- if (argsIndex < argsLength) {
54
- result[holders[argsIndex]] = args[argsIndex];
45
+ else {
46
+ args.push(arg);
55
47
  }
56
48
  }
57
- while (rangeLength--) {
58
- result[leftIndex++] = args[argsIndex++];
49
+ for (let i = startIndex; i < providedArgs.length; i++) {
50
+ args.push(providedArgs[i]);
59
51
  }
60
- return result;
52
+ return args;
61
53
  }
62
54
  const curryPlaceholder = Symbol('curry.placeholder');
63
55
  curry.placeholder = curryPlaceholder;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Defers invoking the `func` until the current call stack has cleared. Any additional arguments are provided to func when it's invoked.
3
+ *
4
+ * @param {F} func The function to defer.
5
+ * @param {Parameters<F>} args The arguments to invoke `func` with.
6
+ * @returns {number} Returns the timer id.
7
+ *
8
+ * @example
9
+ * defer((text) => {
10
+ * console.log(text);
11
+ * }, 'deferred');
12
+ * // => Logs 'deferred' after the current call stack has cleared.
13
+ */
14
+ declare function defer<F extends (...args: any[]) => any>(func: F, ...args: Parameters<F>): number;
15
+
16
+ export { defer };
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Defers invoking the `func` until the current call stack has cleared. Any additional arguments are provided to func when it's invoked.
3
+ *
4
+ * @param {F} func The function to defer.
5
+ * @param {Parameters<F>} args The arguments to invoke `func` with.
6
+ * @returns {number} Returns the timer id.
7
+ *
8
+ * @example
9
+ * defer((text) => {
10
+ * console.log(text);
11
+ * }, 'deferred');
12
+ * // => Logs 'deferred' after the current call stack has cleared.
13
+ */
14
+ declare function defer<F extends (...args: any[]) => any>(func: F, ...args: Parameters<F>): number;
15
+
16
+ export { defer };
@@ -0,0 +1,8 @@
1
+ function defer(func, ...args) {
2
+ if (typeof func !== 'function') {
3
+ throw new TypeError('Expected a function');
4
+ }
5
+ return setTimeout(func, 1, ...args);
6
+ }
7
+
8
+ export { defer };
@@ -57,10 +57,8 @@ export { MemoizeCache, memoize } from '../function/memoize.mjs';
57
57
  export { unary } from '../function/unary.mjs';
58
58
  export { partial } from '../function/partial.mjs';
59
59
  export { partialRight } from '../function/partialRight.mjs';
60
- export { inRange } from '../math/inRange.mjs';
61
60
  export { mean } from '../math/mean.mjs';
62
61
  export { meanBy } from '../math/meanBy.mjs';
63
- export { random } from '../math/random.mjs';
64
62
  export { randomInt } from '../math/randomInt.mjs';
65
63
  export { sum } from '../math/sum.mjs';
66
64
  export { sumBy } from '../math/sumBy.mjs';
@@ -70,11 +68,9 @@ export { pickBy } from '../object/pickBy.mjs';
70
68
  export { invert } from '../object/invert.mjs';
71
69
  export { clone } from '../object/clone.mjs';
72
70
  export { flattenObject } from '../object/flattenObject.mjs';
73
- export { cloneDeep } from '../object/cloneDeep.mjs';
74
71
  export { toMerged } from '../object/toMerged.mjs';
75
72
  export { isDate } from '../predicate/isDate.mjs';
76
73
  export { isEqual } from '../predicate/isEqual.mjs';
77
- export { isNil } from '../predicate/isNil.mjs';
78
74
  export { isNotNil } from '../predicate/isNotNil.mjs';
79
75
  export { isNull } from '../predicate/isNull.mjs';
80
76
  export { isUndefined } from '../predicate/isUndefined.mjs';
@@ -86,13 +82,13 @@ export { withTimeout } from '../promise/withTimeout.mjs';
86
82
  export { timeout } from '../promise/timeout.mjs';
87
83
  export { capitalize } from '../string/capitalize.mjs';
88
84
  export { pascalCase } from '../string/pascalCase.mjs';
85
+ export { constantCase } from '../string/constantCase.mjs';
89
86
  export { upperFirst } from '../string/upperFirst.mjs';
90
87
  export { lowerFirst } from '../string/lowerFirst.mjs';
91
88
  export { deburr } from '../string/deburr.mjs';
92
89
  export { escape } from '../string/escape.mjs';
93
90
  export { escapeRegExp } from '../string/escapeRegExp.mjs';
94
91
  export { unescape } from '../string/unescape.mjs';
95
- export { pad } from '../string/pad.mjs';
96
92
  export { castArray } from './array/castArray.mjs';
97
93
  export { chunk } from './array/chunk.mjs';
98
94
  export { concat } from './array/concat.mjs';
@@ -115,6 +111,7 @@ export { zipObjectDeep } from './array/zipObjectDeep.mjs';
115
111
  export { ary } from './function/ary.mjs';
116
112
  export { bind } from './function/bind.mjs';
117
113
  export { bindKey } from './function/bindKey.mjs';
114
+ export { defer } from './function/defer.mjs';
118
115
  export { rest } from './function/rest.mjs';
119
116
  export { spread } from './function/spread.mjs';
120
117
  export { attempt } from './function/attempt.mjs';
@@ -134,6 +131,7 @@ export { merge } from './object/merge.mjs';
134
131
  export { mergeWith } from './object/mergeWith.mjs';
135
132
  export { fromPairs } from './object/fromPairs.mjs';
136
133
  export { unset } from './object/unset.mjs';
134
+ export { cloneDeep } from './object/cloneDeep.mjs';
137
135
  export { isPlainObject } from './predicate/isPlainObject.mjs';
138
136
  export { isArray } from './predicate/isArray.mjs';
139
137
  export { isArguments } from './predicate/isArguments.mjs';
@@ -142,6 +140,8 @@ export { isSymbol } from './predicate/isSymbol.mjs';
142
140
  export { isObject } from './predicate/isObject.mjs';
143
141
  export { isObjectLike } from './predicate/isObjectLike.mjs';
144
142
  export { isBoolean } from './predicate/isBoolean.mjs';
143
+ export { isError } from './predicate/isError.mjs';
144
+ export { isFinite } from './predicate/isFinite.mjs';
145
145
  export { isTypedArray } from './predicate/isTypedArray.mjs';
146
146
  export { isMatch } from './predicate/isMatch.mjs';
147
147
  export { isRegExp } from './predicate/isRegExp.mjs';
@@ -156,6 +156,8 @@ export { isInteger } from './predicate/isInteger.mjs';
156
156
  export { isSafeInteger } from './predicate/isSafeInteger.mjs';
157
157
  export { isNumber } from './predicate/isNumber.mjs';
158
158
  export { isNaN } from './predicate/isNaN.mjs';
159
+ export { isArrayLikeObject } from './predicate/isArrayLikeObject.mjs';
160
+ export { isNil } from './predicate/isNil.mjs';
159
161
  export { camelCase } from './string/camelCase.mjs';
160
162
  export { kebabCase } from './string/kebabCase.mjs';
161
163
  export { snakeCase } from './string/snakeCase.mjs';
@@ -164,6 +166,7 @@ export { lowerCase } from './string/lowerCase.mjs';
164
166
  export { upperCase } from './string/upperCase.mjs';
165
167
  export { startsWith } from './string/startsWith.mjs';
166
168
  export { endsWith } from './string/endsWith.mjs';
169
+ export { pad } from './string/pad.mjs';
167
170
  export { padStart } from './string/padStart.mjs';
168
171
  export { padEnd } from './string/padEnd.mjs';
169
172
  export { repeat } from './string/repeat.mjs';
@@ -177,5 +180,10 @@ export { ceil } from './math/ceil.mjs';
177
180
  export { floor } from './math/floor.mjs';
178
181
  export { round } from './math/round.mjs';
179
182
  export { parseInt } from './math/parseInt.mjs';
183
+ export { inRange } from './math/inRange.mjs';
184
+ export { random } from './math/random.mjs';
180
185
  export { toPath } from './util/toPath.mjs';
181
186
  export { toString } from './util/toString.mjs';
187
+ export { toNumber } from './util/toNumber.mjs';
188
+ export { toInteger } from './util/toInteger.mjs';
189
+ export { toFinite } from './util/toFinite.mjs';
@@ -57,10 +57,8 @@ export { MemoizeCache, memoize } from '../function/memoize.js';
57
57
  export { unary } from '../function/unary.js';
58
58
  export { partial } from '../function/partial.js';
59
59
  export { partialRight } from '../function/partialRight.js';
60
- export { inRange } from '../math/inRange.js';
61
60
  export { mean } from '../math/mean.js';
62
61
  export { meanBy } from '../math/meanBy.js';
63
- export { random } from '../math/random.js';
64
62
  export { randomInt } from '../math/randomInt.js';
65
63
  export { sum } from '../math/sum.js';
66
64
  export { sumBy } from '../math/sumBy.js';
@@ -70,11 +68,9 @@ export { pickBy } from '../object/pickBy.js';
70
68
  export { invert } from '../object/invert.js';
71
69
  export { clone } from '../object/clone.js';
72
70
  export { flattenObject } from '../object/flattenObject.js';
73
- export { cloneDeep } from '../object/cloneDeep.js';
74
71
  export { toMerged } from '../object/toMerged.js';
75
72
  export { isDate } from '../predicate/isDate.js';
76
73
  export { isEqual } from '../predicate/isEqual.js';
77
- export { isNil } from '../predicate/isNil.js';
78
74
  export { isNotNil } from '../predicate/isNotNil.js';
79
75
  export { isNull } from '../predicate/isNull.js';
80
76
  export { isUndefined } from '../predicate/isUndefined.js';
@@ -86,13 +82,13 @@ export { withTimeout } from '../promise/withTimeout.js';
86
82
  export { timeout } from '../promise/timeout.js';
87
83
  export { capitalize } from '../string/capitalize.js';
88
84
  export { pascalCase } from '../string/pascalCase.js';
85
+ export { constantCase } from '../string/constantCase.js';
89
86
  export { upperFirst } from '../string/upperFirst.js';
90
87
  export { lowerFirst } from '../string/lowerFirst.js';
91
88
  export { deburr } from '../string/deburr.js';
92
89
  export { escape } from '../string/escape.js';
93
90
  export { escapeRegExp } from '../string/escapeRegExp.js';
94
91
  export { unescape } from '../string/unescape.js';
95
- export { pad } from '../string/pad.js';
96
92
  export { castArray } from './array/castArray.js';
97
93
  export { chunk } from './array/chunk.js';
98
94
  export { concat } from './array/concat.js';
@@ -115,6 +111,7 @@ export { zipObjectDeep } from './array/zipObjectDeep.js';
115
111
  export { ary } from './function/ary.js';
116
112
  export { bind } from './function/bind.js';
117
113
  export { bindKey } from './function/bindKey.js';
114
+ export { defer } from './function/defer.js';
118
115
  export { rest } from './function/rest.js';
119
116
  export { spread } from './function/spread.js';
120
117
  export { attempt } from './function/attempt.js';
@@ -134,6 +131,7 @@ export { merge } from './object/merge.js';
134
131
  export { mergeWith } from './object/mergeWith.js';
135
132
  export { fromPairs } from './object/fromPairs.js';
136
133
  export { unset } from './object/unset.js';
134
+ export { cloneDeep } from './object/cloneDeep.js';
137
135
  export { isPlainObject } from './predicate/isPlainObject.js';
138
136
  export { isArray } from './predicate/isArray.js';
139
137
  export { isArguments } from './predicate/isArguments.js';
@@ -142,6 +140,8 @@ export { isSymbol } from './predicate/isSymbol.js';
142
140
  export { isObject } from './predicate/isObject.js';
143
141
  export { isObjectLike } from './predicate/isObjectLike.js';
144
142
  export { isBoolean } from './predicate/isBoolean.js';
143
+ export { isError } from './predicate/isError.js';
144
+ export { isFinite } from './predicate/isFinite.js';
145
145
  export { isTypedArray } from './predicate/isTypedArray.js';
146
146
  export { isMatch } from './predicate/isMatch.js';
147
147
  export { isRegExp } from './predicate/isRegExp.js';
@@ -156,6 +156,8 @@ export { isInteger } from './predicate/isInteger.js';
156
156
  export { isSafeInteger } from './predicate/isSafeInteger.js';
157
157
  export { isNumber } from './predicate/isNumber.js';
158
158
  export { isNaN } from './predicate/isNaN.js';
159
+ export { isArrayLikeObject } from './predicate/isArrayLikeObject.js';
160
+ export { isNil } from './predicate/isNil.js';
159
161
  export { camelCase } from './string/camelCase.js';
160
162
  export { kebabCase } from './string/kebabCase.js';
161
163
  export { snakeCase } from './string/snakeCase.js';
@@ -164,6 +166,7 @@ export { lowerCase } from './string/lowerCase.js';
164
166
  export { upperCase } from './string/upperCase.js';
165
167
  export { startsWith } from './string/startsWith.js';
166
168
  export { endsWith } from './string/endsWith.js';
169
+ export { pad } from './string/pad.js';
167
170
  export { padStart } from './string/padStart.js';
168
171
  export { padEnd } from './string/padEnd.js';
169
172
  export { repeat } from './string/repeat.js';
@@ -177,5 +180,10 @@ export { ceil } from './math/ceil.js';
177
180
  export { floor } from './math/floor.js';
178
181
  export { round } from './math/round.js';
179
182
  export { parseInt } from './math/parseInt.js';
183
+ export { inRange } from './math/inRange.js';
184
+ export { random } from './math/random.js';
180
185
  export { toPath } from './util/toPath.js';
181
186
  export { toString } from './util/toString.js';
187
+ export { toNumber } from './util/toNumber.js';
188
+ export { toInteger } from './util/toInteger.js';
189
+ export { toFinite } from './util/toFinite.js';