es-toolkit 1.23.0-dev.743 → 1.23.0-dev.745

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 (39) hide show
  1. package/README.md +1 -1
  2. package/dist/browser.global.js +1 -1
  3. package/dist/browser.global.js.map +1 -1
  4. package/dist/compat/index.d.mts +73 -72
  5. package/dist/compat/index.d.ts +73 -72
  6. package/dist/compat/index.js +567 -554
  7. package/dist/compat/index.mjs +72 -71
  8. package/dist/compat/string/upperCase.mjs +1 -1
  9. package/dist/compat/util/times.d.mts +18 -0
  10. package/dist/compat/util/times.d.ts +18 -0
  11. package/dist/compat/util/times.mjs +15 -0
  12. package/dist/index.d.mts +32 -32
  13. package/dist/index.d.ts +32 -32
  14. package/dist/index.js +40 -40
  15. package/dist/index.mjs +32 -32
  16. package/dist/math/index.d.mts +2 -2
  17. package/dist/math/index.d.ts +2 -2
  18. package/dist/math/index.js +9 -9
  19. package/dist/math/index.mjs +2 -2
  20. package/dist/object/index.d.mts +7 -7
  21. package/dist/object/index.d.ts +7 -7
  22. package/dist/object/index.js +32 -32
  23. package/dist/object/index.mjs +7 -7
  24. package/dist/predicate/index.d.mts +10 -10
  25. package/dist/predicate/index.d.ts +10 -10
  26. package/dist/predicate/index.js +7 -7
  27. package/dist/predicate/index.mjs +10 -10
  28. package/dist/promise/index.d.mts +1 -1
  29. package/dist/promise/index.d.ts +1 -1
  30. package/dist/promise/index.mjs +1 -1
  31. package/dist/string/index.d.mts +12 -12
  32. package/dist/string/index.d.ts +12 -12
  33. package/dist/string/index.js +20 -20
  34. package/dist/string/index.mjs +12 -12
  35. package/package.json +5 -1
  36. package/dist/_chunk/{isWeakSet-CjpFwn.js → isWeakSet-Bd6nry.js} +45 -45
  37. package/dist/_chunk/{rangeRight-CtcxMd.js → sumBy-BkErWJ.js} +5 -5
  38. package/dist/_chunk/{isObjectLike-aywuSF.js → toMerged-BBJZIl.js} +86 -86
  39. package/dist/_chunk/{pad-BWiShN.js → upperFirst-BUECmK.js} +84 -84
@@ -57,42 +57,42 @@ export { partialRight } from '../function/partialRight.mjs';
57
57
  export { mean } from '../math/mean.mjs';
58
58
  export { meanBy } from '../math/meanBy.mjs';
59
59
  export { randomInt } from '../math/randomInt.mjs';
60
- export { sum } from '../math/sum.mjs';
61
- export { sumBy } from '../math/sumBy.mjs';
62
60
  export { range } from '../math/range.mjs';
63
61
  export { rangeRight } from '../math/rangeRight.mjs';
64
- export { omitBy } from '../object/omitBy.mjs';
65
- export { pickBy } from '../object/pickBy.mjs';
66
- export { invert } from '../object/invert.mjs';
62
+ export { sum } from '../math/sum.mjs';
63
+ export { sumBy } from '../math/sumBy.mjs';
67
64
  export { clone } from '../object/clone.mjs';
68
- export { flattenObject } from '../object/flattenObject.mjs';
69
65
  export { isPrimitive } from '../predicate/isPrimitive.mjs';
70
- export { toMerged } from '../object/toMerged.mjs';
66
+ export { flattenObject } from '../object/flattenObject.mjs';
67
+ export { invert } from '../object/invert.mjs';
71
68
  export { isObjectLike } from './predicate/isObjectLike.mjs';
69
+ export { omitBy } from '../object/omitBy.mjs';
70
+ export { pickBy } from '../object/pickBy.mjs';
71
+ export { toMerged } from '../object/toMerged.mjs';
72
72
  export { isBlob } from '../predicate/isBlob.mjs';
73
73
  export { isDate } from '../predicate/isDate.mjs';
74
74
  export { isEqual } from '../predicate/isEqual.mjs';
75
75
  export { eq } from './util/eq.mjs';
76
- export { isNotNil } from '../predicate/isNotNil.mjs';
77
- export { isNull } from '../predicate/isNull.mjs';
78
- export { isUndefined } from '../predicate/isUndefined.mjs';
79
- export { isLength } from '../predicate/isLength.mjs';
80
76
  export { isFunction } from '../predicate/isFunction.mjs';
77
+ export { isJSONArray } from '../predicate/isJSONArray.mjs';
81
78
  export { isJSONObject } from '../predicate/isJSONObject.mjs';
82
79
  export { isJSONValue } from '../predicate/isJSONValue.mjs';
83
- export { isJSONArray } from '../predicate/isJSONArray.mjs';
80
+ export { isLength } from '../predicate/isLength.mjs';
81
+ export { isNotNil } from '../predicate/isNotNil.mjs';
82
+ export { isNull } from '../predicate/isNull.mjs';
83
+ export { isUndefined } from '../predicate/isUndefined.mjs';
84
84
  export { delay } from '../promise/delay.mjs';
85
- export { withTimeout } from '../promise/withTimeout.mjs';
86
85
  export { timeout } from '../promise/timeout.mjs';
86
+ export { withTimeout } from '../promise/withTimeout.mjs';
87
87
  export { capitalize } from '../string/capitalize.mjs';
88
- export { pascalCase } from '../string/pascalCase.mjs';
89
88
  export { constantCase } from '../string/constantCase.mjs';
90
- export { upperFirst } from '../string/upperFirst.mjs';
91
- export { lowerFirst } from '../string/lowerFirst.mjs';
92
89
  export { deburr } from '../string/deburr.mjs';
93
90
  export { escape } from '../string/escape.mjs';
94
91
  export { escapeRegExp } from '../string/escapeRegExp.mjs';
92
+ export { lowerFirst } from '../string/lowerFirst.mjs';
93
+ export { pascalCase } from '../string/pascalCase.mjs';
95
94
  export { unescape } from '../string/unescape.mjs';
95
+ export { upperFirst } from '../string/upperFirst.mjs';
96
96
  export { castArray } from './array/castArray.mjs';
97
97
  export { chunk } from './array/chunk.mjs';
98
98
  export { concat } from './array/concat.mjs';
@@ -101,6 +101,7 @@ export { drop } from './array/drop.mjs';
101
101
  export { dropWhile } from './array/dropWhile.mjs';
102
102
  export { every } from './array/every.mjs';
103
103
  export { fill } from './array/fill.mjs';
104
+ export { filter } from './array/filter.mjs';
104
105
  export { find } from './array/find.mjs';
105
106
  export { findIndex } from './array/findIndex.mjs';
106
107
  export { findLastIndex } from './array/findLastIndex.mjs';
@@ -111,100 +112,100 @@ export { includes } from './array/includes.mjs';
111
112
  export { indexOf } from './array/indexOf.mjs';
112
113
  export { join } from './array/join.mjs';
113
114
  export { orderBy } from './array/orderBy.mjs';
114
- export { sortBy } from './array/sortBy.mjs';
115
115
  export { size } from './array/size.mjs';
116
116
  export { some } from './array/some.mjs';
117
+ export { sortBy } from './array/sortBy.mjs';
117
118
  export { take } from './array/take.mjs';
118
119
  export { zipObjectDeep } from './array/zipObjectDeep.mjs';
119
- export { filter } from './array/filter.mjs';
120
120
  export { ary } from './function/ary.mjs';
121
- export { bind } from './function/bind.mjs';
121
+ export { attempt } from './function/attempt.mjs';
122
122
  export { before } from './function/before.mjs';
123
+ export { bind } from './function/bind.mjs';
123
124
  export { bindKey } from './function/bindKey.mjs';
124
- export { defer } from './function/defer.mjs';
125
- export { rest } from './function/rest.mjs';
126
- export { spread } from './function/spread.mjs';
127
- export { attempt } from './function/attempt.mjs';
128
- export { rearg } from './function/rearg.mjs';
129
125
  export { curry } from './function/curry.mjs';
130
126
  export { curryRight } from './function/curryRight.mjs';
131
127
  export { debounce } from './function/debounce.mjs';
132
- export { throttle } from './function/throttle.mjs';
128
+ export { defer } from './function/defer.mjs';
133
129
  export { flip } from './function/flip.mjs';
134
130
  export { flow } from './function/flow.mjs';
135
131
  export { flowRight } from './function/flowRight.mjs';
132
+ export { rearg } from './function/rearg.mjs';
133
+ export { rest } from './function/rest.mjs';
134
+ export { spread } from './function/spread.mjs';
135
+ export { throttle } from './function/throttle.mjs';
136
+ export { ceil } from './math/ceil.mjs';
137
+ export { clamp } from './math/clamp.mjs';
138
+ export { floor } from './math/floor.mjs';
139
+ export { inRange } from './math/inRange.mjs';
140
+ export { max } from './math/max.mjs';
141
+ export { min } from './math/min.mjs';
142
+ export { parseInt } from './math/parseInt.mjs';
143
+ export { random } from './math/random.mjs';
144
+ export { round } from './math/round.mjs';
145
+ export { cloneDeep } from './object/cloneDeep.mjs';
146
+ export { defaults } from './object/defaults.mjs';
147
+ export { fromPairs } from './object/fromPairs.mjs';
136
148
  export { get } from './object/get.mjs';
137
- export { set } from './object/set.mjs';
138
- export { pick } from './object/pick.mjs';
139
- export { omit } from './object/omit.mjs';
140
149
  export { has } from './object/has.mjs';
141
- export { property } from './object/property.mjs';
150
+ export { invertBy } from './object/invertBy.mjs';
142
151
  export { mapKeys } from './object/mapKeys.mjs';
143
152
  export { mapValues } from './object/mapValues.mjs';
144
153
  export { merge } from './object/merge.mjs';
145
154
  export { mergeWith } from './object/mergeWith.mjs';
146
- export { fromPairs } from './object/fromPairs.mjs';
147
- export { unset } from './object/unset.mjs';
148
- export { cloneDeep } from './object/cloneDeep.mjs';
149
- export { invertBy } from './object/invertBy.mjs';
150
- export { defaults } from './object/defaults.mjs';
155
+ export { omit } from './object/omit.mjs';
156
+ export { pick } from './object/pick.mjs';
157
+ export { property } from './object/property.mjs';
158
+ export { set } from './object/set.mjs';
151
159
  export { toDefaulted } from './object/toDefaulted.mjs';
152
- export { isPlainObject } from './predicate/isPlainObject.mjs';
153
- export { isArray } from './predicate/isArray.mjs';
160
+ export { unset } from './object/unset.mjs';
161
+ export { conforms } from './predicate/conforms.mjs';
162
+ export { conformsTo } from './predicate/conformsTo.mjs';
154
163
  export { isArguments } from './predicate/isArguments.mjs';
164
+ export { isArray } from './predicate/isArray.mjs';
155
165
  export { isArrayBuffer } from './predicate/isArrayBuffer.mjs';
156
166
  export { isArrayLike } from './predicate/isArrayLike.mjs';
157
- export { isSymbol } from './predicate/isSymbol.mjs';
158
- export { isObject } from './predicate/isObject.mjs';
167
+ export { isArrayLikeObject } from './predicate/isArrayLikeObject.mjs';
159
168
  export { isBoolean } from './predicate/isBoolean.mjs';
169
+ export { isEqualWith } from './predicate/isEqualWith.mjs';
160
170
  export { isError } from './predicate/isError.mjs';
161
171
  export { isFinite } from './predicate/isFinite.mjs';
162
- export { isTypedArray } from './predicate/isTypedArray.mjs';
163
- export { isMatch } from './predicate/isMatch.mjs';
172
+ export { isInteger } from './predicate/isInteger.mjs';
164
173
  export { isMap } from './predicate/isMap.mjs';
165
- export { isSet } from './predicate/isSet.mjs';
174
+ export { isMatch } from './predicate/isMatch.mjs';
175
+ export { isNaN } from './predicate/isNaN.mjs';
176
+ export { isNil } from './predicate/isNil.mjs';
177
+ export { isNumber } from './predicate/isNumber.mjs';
178
+ export { isObject } from './predicate/isObject.mjs';
179
+ export { isPlainObject } from './predicate/isPlainObject.mjs';
166
180
  export { isRegExp } from './predicate/isRegExp.mjs';
181
+ export { isSafeInteger } from './predicate/isSafeInteger.mjs';
182
+ export { isSet } from './predicate/isSet.mjs';
167
183
  export { isString } from './predicate/isString.mjs';
168
- export { matches } from './predicate/matches.mjs';
169
- export { matchesProperty } from './predicate/matchesProperty.mjs';
184
+ export { isSymbol } from './predicate/isSymbol.mjs';
185
+ export { isTypedArray } from './predicate/isTypedArray.mjs';
170
186
  export { isWeakMap } from './predicate/isWeakMap.mjs';
171
187
  export { isWeakSet } from './predicate/isWeakSet.mjs';
172
- export { conforms } from './predicate/conforms.mjs';
173
- export { conformsTo } from './predicate/conformsTo.mjs';
174
- export { isInteger } from './predicate/isInteger.mjs';
175
- export { isSafeInteger } from './predicate/isSafeInteger.mjs';
176
- export { isNumber } from './predicate/isNumber.mjs';
177
- export { isNaN } from './predicate/isNaN.mjs';
178
- export { isArrayLikeObject } from './predicate/isArrayLikeObject.mjs';
179
- export { isNil } from './predicate/isNil.mjs';
180
- export { isEqualWith } from './predicate/isEqualWith.mjs';
188
+ export { matches } from './predicate/matches.mjs';
189
+ export { matchesProperty } from './predicate/matchesProperty.mjs';
181
190
  export { camelCase } from './string/camelCase.mjs';
191
+ export { endsWith } from './string/endsWith.mjs';
182
192
  export { kebabCase } from './string/kebabCase.mjs';
183
- export { snakeCase } from './string/snakeCase.mjs';
184
- export { startCase } from './string/startCase.mjs';
185
193
  export { lowerCase } from './string/lowerCase.mjs';
186
- export { upperCase } from './string/upperCase.mjs';
187
- export { startsWith } from './string/startsWith.mjs';
188
- export { endsWith } from './string/endsWith.mjs';
189
194
  export { pad } from './string/pad.mjs';
190
- export { padStart } from './string/padStart.mjs';
191
195
  export { padEnd } from './string/padEnd.mjs';
196
+ export { padStart } from './string/padStart.mjs';
192
197
  export { repeat } from './string/repeat.mjs';
198
+ export { snakeCase } from './string/snakeCase.mjs';
199
+ export { startCase } from './string/startCase.mjs';
200
+ export { startsWith } from './string/startsWith.mjs';
201
+ export { upperCase } from './string/upperCase.mjs';
193
202
  export { trim } from './string/trim.mjs';
194
- export { trimStart } from './string/trimStart.mjs';
195
203
  export { trimEnd } from './string/trimEnd.mjs';
196
- export { clamp } from './math/clamp.mjs';
197
- export { max } from './math/max.mjs';
198
- export { min } from './math/min.mjs';
199
- export { ceil } from './math/ceil.mjs';
200
- export { floor } from './math/floor.mjs';
201
- export { round } from './math/round.mjs';
202
- export { parseInt } from './math/parseInt.mjs';
203
- export { inRange } from './math/inRange.mjs';
204
- export { random } from './math/random.mjs';
204
+ export { trimStart } from './string/trimStart.mjs';
205
205
  export { constant } from './util/constant.mjs';
206
+ export { times } from './util/times.mjs';
207
+ export { toFinite } from './util/toFinite.mjs';
208
+ export { toInteger } from './util/toInteger.mjs';
209
+ export { toNumber } from './util/toNumber.mjs';
206
210
  export { toPath } from './util/toPath.mjs';
207
211
  export { toString } from './util/toString.mjs';
208
- export { toNumber } from './util/toNumber.mjs';
209
- export { toInteger } from './util/toInteger.mjs';
210
- export { toFinite } from './util/toFinite.mjs';
@@ -1,5 +1,5 @@
1
- import { upperCase as upperCase$1 } from '../../string/upperCase.mjs';
2
1
  import '../../string/deburr.mjs';
2
+ import { upperCase as upperCase$1 } from '../../string/upperCase.mjs';
3
3
  import { normalizeForCase } from '../_internal/normalizeForCase.mjs';
4
4
 
5
5
  function upperCase(str) {
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Invokes the iteratee n times, returning an array of the results of each invocation.
3
+ *
4
+ * The iteratee is invoked with one argument; (index).
5
+ *
6
+ * @template F The type of the iteratee function.
7
+ * @param {number} n - The number of times to invoke iteratee.
8
+ * @param {F extends (n: number) => any} [iteratee] - The function invoked per iteration. Default is identity.
9
+ * @returns {Array<ReturnType<F>>} - Returns the array of results.
10
+ *
11
+ * @example
12
+ * times(3, doubled); // => [0, 2, 4]
13
+ * times(4); // => [0, 1, 2, 3]
14
+ * times(2, () => 'es-toolkit') // => ['es-toolkit', 'es-toolkit']
15
+ */
16
+ declare function times<F extends (n: number) => any>(n?: number, iteratee?: F): Array<ReturnType<F>>;
17
+
18
+ export { times };
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Invokes the iteratee n times, returning an array of the results of each invocation.
3
+ *
4
+ * The iteratee is invoked with one argument; (index).
5
+ *
6
+ * @template F The type of the iteratee function.
7
+ * @param {number} n - The number of times to invoke iteratee.
8
+ * @param {F extends (n: number) => any} [iteratee] - The function invoked per iteration. Default is identity.
9
+ * @returns {Array<ReturnType<F>>} - Returns the array of results.
10
+ *
11
+ * @example
12
+ * times(3, doubled); // => [0, 2, 4]
13
+ * times(4); // => [0, 1, 2, 3]
14
+ * times(2, () => 'es-toolkit') // => ['es-toolkit', 'es-toolkit']
15
+ */
16
+ declare function times<F extends (n: number) => any>(n?: number, iteratee?: F): Array<ReturnType<F>>;
17
+
18
+ export { times };
@@ -0,0 +1,15 @@
1
+ import { toInteger } from './toInteger.mjs';
2
+
3
+ function times(n, iteratee) {
4
+ n = toInteger(n);
5
+ if (n < 1 || !Number.isSafeInteger(n)) {
6
+ return [];
7
+ }
8
+ const result = new Array(n);
9
+ for (let i = 0; i < n; i++) {
10
+ result[i] = typeof iteratee === 'function' ? iteratee(i) : i;
11
+ }
12
+ return result;
13
+ }
14
+
15
+ export { times };
package/dist/index.d.mts CHANGED
@@ -80,69 +80,69 @@ export { mean } from './math/mean.mjs';
80
80
  export { meanBy } from './math/meanBy.mjs';
81
81
  export { random } from './math/random.mjs';
82
82
  export { randomInt } from './math/randomInt.mjs';
83
+ export { range } from './math/range.mjs';
84
+ export { rangeRight } from './math/rangeRight.mjs';
83
85
  export { round } from './math/round.mjs';
84
86
  export { sum } from './math/sum.mjs';
85
87
  export { sumBy } from './math/sumBy.mjs';
86
- export { range } from './math/range.mjs';
87
- export { rangeRight } from './math/rangeRight.mjs';
88
- export { omit } from './object/omit.mjs';
89
- export { omitBy } from './object/omitBy.mjs';
90
- export { pick } from './object/pick.mjs';
91
- export { pickBy } from './object/pickBy.mjs';
92
- export { invert } from './object/invert.mjs';
93
88
  export { clone } from './object/clone.mjs';
89
+ export { cloneDeep } from './object/cloneDeep.mjs';
94
90
  export { flattenObject } from './object/flattenObject.mjs';
91
+ export { invert } from './object/invert.mjs';
95
92
  export { mapKeys } from './object/mapKeys.mjs';
96
93
  export { mapValues } from './object/mapValues.mjs';
97
- export { cloneDeep } from './object/cloneDeep.mjs';
98
94
  export { merge } from './object/merge.mjs';
99
- export { toMerged } from './object/toMerged.mjs';
100
95
  export { mergeWith } from './object/mergeWith.mjs';
96
+ export { omit } from './object/omit.mjs';
97
+ export { omitBy } from './object/omitBy.mjs';
98
+ export { pick } from './object/pick.mjs';
99
+ export { pickBy } from './object/pickBy.mjs';
100
+ export { toMerged } from './object/toMerged.mjs';
101
101
  export { isArrayBuffer } from './predicate/isArrayBuffer.mjs';
102
102
  export { isBlob } from './predicate/isBlob.mjs';
103
+ export { isBoolean } from './predicate/isBoolean.mjs';
103
104
  export { isDate } from './predicate/isDate.mjs';
104
105
  export { isEqual } from './predicate/isEqual.mjs';
105
106
  export { isEqualWith } from './predicate/isEqualWith.mjs';
106
107
  export { isError } from './predicate/isError.mjs';
108
+ export { isFunction } from './predicate/isFunction.mjs';
109
+ export { isJSONArray } from './predicate/isJSONArray.mjs';
110
+ export { isJSONObject } from './predicate/isJSONObject.mjs';
111
+ export { isJSONValue } from './predicate/isJSONValue.mjs';
112
+ export { isLength } from './predicate/isLength.mjs';
107
113
  export { isMap } from './predicate/isMap.mjs';
108
114
  export { isNil } from './predicate/isNil.mjs';
109
115
  export { isNotNil } from './predicate/isNotNil.mjs';
110
116
  export { isNull } from './predicate/isNull.mjs';
111
- export { isUndefined } from './predicate/isUndefined.mjs';
112
- export { isLength } from './predicate/isLength.mjs';
113
117
  export { isPlainObject } from './predicate/isPlainObject.mjs';
114
- export { isFunction } from './predicate/isFunction.mjs';
115
- export { isTypedArray } from './predicate/isTypedArray.mjs';
116
118
  export { isPrimitive } from './predicate/isPrimitive.mjs';
117
119
  export { isRegExp } from './predicate/isRegExp.mjs';
118
- export { isBoolean } from './predicate/isBoolean.mjs';
119
- export { isSymbol } from './predicate/isSymbol.mjs';
120
- export { isString } from './predicate/isString.mjs';
121
- export { isJSONObject } from './predicate/isJSONObject.mjs';
122
- export { isJSONValue } from './predicate/isJSONValue.mjs';
123
- export { isJSONArray } from './predicate/isJSONArray.mjs';
124
120
  export { isSet } from './predicate/isSet.mjs';
121
+ export { isString } from './predicate/isString.mjs';
122
+ export { isSymbol } from './predicate/isSymbol.mjs';
123
+ export { isTypedArray } from './predicate/isTypedArray.mjs';
124
+ export { isUndefined } from './predicate/isUndefined.mjs';
125
125
  export { isWeakMap } from './predicate/isWeakMap.mjs';
126
126
  export { isWeakSet } from './predicate/isWeakSet.mjs';
127
127
  export { delay } from './promise/delay.mjs';
128
- export { withTimeout } from './promise/withTimeout.mjs';
129
128
  export { timeout } from './promise/timeout.mjs';
129
+ export { withTimeout } from './promise/withTimeout.mjs';
130
130
  export { camelCase } from './string/camelCase.mjs';
131
- export { snakeCase } from './string/snakeCase.mjs';
132
- export { kebabCase } from './string/kebabCase.mjs';
133
- export { upperCase } from './string/upperCase.mjs';
134
- export { lowerCase } from './string/lowerCase.mjs';
135
- export { startCase } from './string/startCase.mjs';
136
131
  export { capitalize } from './string/capitalize.mjs';
137
- export { pascalCase } from './string/pascalCase.mjs';
138
132
  export { constantCase } from './string/constantCase.mjs';
139
- export { trim } from './string/trim.mjs';
140
- export { trimStart } from './string/trimStart.mjs';
141
- export { trimEnd } from './string/trimEnd.mjs';
142
- export { upperFirst } from './string/upperFirst.mjs';
143
- export { lowerFirst } from './string/lowerFirst.mjs';
144
133
  export { deburr } from './string/deburr.mjs';
145
134
  export { escape } from './string/escape.mjs';
146
135
  export { escapeRegExp } from './string/escapeRegExp.mjs';
147
- export { unescape } from './string/unescape.mjs';
136
+ export { kebabCase } from './string/kebabCase.mjs';
137
+ export { lowerCase } from './string/lowerCase.mjs';
138
+ export { lowerFirst } from './string/lowerFirst.mjs';
148
139
  export { pad } from './string/pad.mjs';
140
+ export { pascalCase } from './string/pascalCase.mjs';
141
+ export { snakeCase } from './string/snakeCase.mjs';
142
+ export { startCase } from './string/startCase.mjs';
143
+ export { trim } from './string/trim.mjs';
144
+ export { trimEnd } from './string/trimEnd.mjs';
145
+ export { trimStart } from './string/trimStart.mjs';
146
+ export { unescape } from './string/unescape.mjs';
147
+ export { upperCase } from './string/upperCase.mjs';
148
+ export { upperFirst } from './string/upperFirst.mjs';
package/dist/index.d.ts CHANGED
@@ -80,69 +80,69 @@ export { mean } from './math/mean.js';
80
80
  export { meanBy } from './math/meanBy.js';
81
81
  export { random } from './math/random.js';
82
82
  export { randomInt } from './math/randomInt.js';
83
+ export { range } from './math/range.js';
84
+ export { rangeRight } from './math/rangeRight.js';
83
85
  export { round } from './math/round.js';
84
86
  export { sum } from './math/sum.js';
85
87
  export { sumBy } from './math/sumBy.js';
86
- export { range } from './math/range.js';
87
- export { rangeRight } from './math/rangeRight.js';
88
- export { omit } from './object/omit.js';
89
- export { omitBy } from './object/omitBy.js';
90
- export { pick } from './object/pick.js';
91
- export { pickBy } from './object/pickBy.js';
92
- export { invert } from './object/invert.js';
93
88
  export { clone } from './object/clone.js';
89
+ export { cloneDeep } from './object/cloneDeep.js';
94
90
  export { flattenObject } from './object/flattenObject.js';
91
+ export { invert } from './object/invert.js';
95
92
  export { mapKeys } from './object/mapKeys.js';
96
93
  export { mapValues } from './object/mapValues.js';
97
- export { cloneDeep } from './object/cloneDeep.js';
98
94
  export { merge } from './object/merge.js';
99
- export { toMerged } from './object/toMerged.js';
100
95
  export { mergeWith } from './object/mergeWith.js';
96
+ export { omit } from './object/omit.js';
97
+ export { omitBy } from './object/omitBy.js';
98
+ export { pick } from './object/pick.js';
99
+ export { pickBy } from './object/pickBy.js';
100
+ export { toMerged } from './object/toMerged.js';
101
101
  export { isArrayBuffer } from './predicate/isArrayBuffer.js';
102
102
  export { isBlob } from './predicate/isBlob.js';
103
+ export { isBoolean } from './predicate/isBoolean.js';
103
104
  export { isDate } from './predicate/isDate.js';
104
105
  export { isEqual } from './predicate/isEqual.js';
105
106
  export { isEqualWith } from './predicate/isEqualWith.js';
106
107
  export { isError } from './predicate/isError.js';
108
+ export { isFunction } from './predicate/isFunction.js';
109
+ export { isJSONArray } from './predicate/isJSONArray.js';
110
+ export { isJSONObject } from './predicate/isJSONObject.js';
111
+ export { isJSONValue } from './predicate/isJSONValue.js';
112
+ export { isLength } from './predicate/isLength.js';
107
113
  export { isMap } from './predicate/isMap.js';
108
114
  export { isNil } from './predicate/isNil.js';
109
115
  export { isNotNil } from './predicate/isNotNil.js';
110
116
  export { isNull } from './predicate/isNull.js';
111
- export { isUndefined } from './predicate/isUndefined.js';
112
- export { isLength } from './predicate/isLength.js';
113
117
  export { isPlainObject } from './predicate/isPlainObject.js';
114
- export { isFunction } from './predicate/isFunction.js';
115
- export { isTypedArray } from './predicate/isTypedArray.js';
116
118
  export { isPrimitive } from './predicate/isPrimitive.js';
117
119
  export { isRegExp } from './predicate/isRegExp.js';
118
- export { isBoolean } from './predicate/isBoolean.js';
119
- export { isSymbol } from './predicate/isSymbol.js';
120
- export { isString } from './predicate/isString.js';
121
- export { isJSONObject } from './predicate/isJSONObject.js';
122
- export { isJSONValue } from './predicate/isJSONValue.js';
123
- export { isJSONArray } from './predicate/isJSONArray.js';
124
120
  export { isSet } from './predicate/isSet.js';
121
+ export { isString } from './predicate/isString.js';
122
+ export { isSymbol } from './predicate/isSymbol.js';
123
+ export { isTypedArray } from './predicate/isTypedArray.js';
124
+ export { isUndefined } from './predicate/isUndefined.js';
125
125
  export { isWeakMap } from './predicate/isWeakMap.js';
126
126
  export { isWeakSet } from './predicate/isWeakSet.js';
127
127
  export { delay } from './promise/delay.js';
128
- export { withTimeout } from './promise/withTimeout.js';
129
128
  export { timeout } from './promise/timeout.js';
129
+ export { withTimeout } from './promise/withTimeout.js';
130
130
  export { camelCase } from './string/camelCase.js';
131
- export { snakeCase } from './string/snakeCase.js';
132
- export { kebabCase } from './string/kebabCase.js';
133
- export { upperCase } from './string/upperCase.js';
134
- export { lowerCase } from './string/lowerCase.js';
135
- export { startCase } from './string/startCase.js';
136
131
  export { capitalize } from './string/capitalize.js';
137
- export { pascalCase } from './string/pascalCase.js';
138
132
  export { constantCase } from './string/constantCase.js';
139
- export { trim } from './string/trim.js';
140
- export { trimStart } from './string/trimStart.js';
141
- export { trimEnd } from './string/trimEnd.js';
142
- export { upperFirst } from './string/upperFirst.js';
143
- export { lowerFirst } from './string/lowerFirst.js';
144
133
  export { deburr } from './string/deburr.js';
145
134
  export { escape } from './string/escape.js';
146
135
  export { escapeRegExp } from './string/escapeRegExp.js';
147
- export { unescape } from './string/unescape.js';
136
+ export { kebabCase } from './string/kebabCase.js';
137
+ export { lowerCase } from './string/lowerCase.js';
138
+ export { lowerFirst } from './string/lowerFirst.js';
148
139
  export { pad } from './string/pad.js';
140
+ export { pascalCase } from './string/pascalCase.js';
141
+ export { snakeCase } from './string/snakeCase.js';
142
+ export { startCase } from './string/startCase.js';
143
+ export { trim } from './string/trim.js';
144
+ export { trimEnd } from './string/trimEnd.js';
145
+ export { trimStart } from './string/trimStart.js';
146
+ export { unescape } from './string/unescape.js';
147
+ export { upperCase } from './string/upperCase.js';
148
+ export { upperFirst } from './string/upperFirst.js';
package/dist/index.js CHANGED
@@ -8,15 +8,15 @@ const promise_index = require('./_chunk/index-BGZDR9.js');
8
8
  const function_index = require('./function/index.js');
9
9
  const flowRight = require('./_chunk/flowRight-Cf9ldK.js');
10
10
  const noop = require('./_chunk/noop-2IwLUk.js');
11
- const rangeRight = require('./_chunk/rangeRight-CtcxMd.js');
11
+ const sumBy = require('./_chunk/sumBy-BkErWJ.js');
12
12
  const randomInt = require('./_chunk/randomInt-CF7bZK.js');
13
13
  const math_index = require('./math/index.js');
14
+ const toMerged = require('./_chunk/toMerged-BBJZIl.js');
14
15
  const object_index = require('./object/index.js');
15
- const isObjectLike = require('./_chunk/isObjectLike-aywuSF.js');
16
- const isWeakSet = require('./_chunk/isWeakSet-CjpFwn.js');
16
+ const isWeakSet = require('./_chunk/isWeakSet-Bd6nry.js');
17
17
  const predicate_index = require('./predicate/index.js');
18
18
  const isPlainObject = require('./_chunk/isPlainObject-DgrsU7.js');
19
- const pad = require('./_chunk/pad-BWiShN.js');
19
+ const upperFirst = require('./_chunk/upperFirst-BUECmK.js');
20
20
  const string_index = require('./string/index.js');
21
21
 
22
22
 
@@ -100,30 +100,30 @@ exports.partialRight = flowRight.partialRight;
100
100
  exports.rest = flowRight.rest;
101
101
  exports.unary = flowRight.unary;
102
102
  exports.noop = noop.noop;
103
- exports.clamp = rangeRight.clamp;
104
- exports.inRange = rangeRight.inRange;
105
- exports.mean = rangeRight.mean;
106
- exports.meanBy = rangeRight.meanBy;
107
- exports.range = rangeRight.range;
108
- exports.rangeRight = rangeRight.rangeRight;
109
- exports.sum = rangeRight.sum;
110
- exports.sumBy = rangeRight.sumBy;
103
+ exports.clamp = sumBy.clamp;
104
+ exports.inRange = sumBy.inRange;
105
+ exports.mean = sumBy.mean;
106
+ exports.meanBy = sumBy.meanBy;
107
+ exports.range = sumBy.range;
108
+ exports.rangeRight = sumBy.rangeRight;
109
+ exports.sum = sumBy.sum;
110
+ exports.sumBy = sumBy.sumBy;
111
111
  exports.random = randomInt.random;
112
112
  exports.randomInt = randomInt.randomInt;
113
113
  exports.round = math_index.round;
114
+ exports.clone = toMerged.clone;
115
+ exports.cloneDeep = toMerged.cloneDeep;
116
+ exports.flattenObject = toMerged.flattenObject;
117
+ exports.invert = toMerged.invert;
118
+ exports.mapKeys = toMerged.mapKeys;
119
+ exports.mapValues = toMerged.mapValues;
120
+ exports.merge = toMerged.merge;
121
+ exports.omitBy = toMerged.omitBy;
122
+ exports.pickBy = toMerged.pickBy;
123
+ exports.toMerged = toMerged.toMerged;
114
124
  exports.mergeWith = object_index.mergeWith;
115
125
  exports.omit = object_index.omit;
116
126
  exports.pick = object_index.pick;
117
- exports.clone = isObjectLike.clone;
118
- exports.cloneDeep = isObjectLike.cloneDeep;
119
- exports.flattenObject = isObjectLike.flattenObject;
120
- exports.invert = isObjectLike.invert;
121
- exports.mapKeys = isObjectLike.mapKeys;
122
- exports.mapValues = isObjectLike.mapValues;
123
- exports.merge = isObjectLike.merge;
124
- exports.omitBy = isObjectLike.omitBy;
125
- exports.pickBy = isObjectLike.pickBy;
126
- exports.toMerged = isObjectLike.toMerged;
127
127
  exports.isArrayBuffer = isWeakSet.isArrayBuffer;
128
128
  exports.isBlob = isWeakSet.isBlob;
129
129
  exports.isDate = isWeakSet.isDate;
@@ -150,22 +150,22 @@ exports.isSymbol = predicate_index.isSymbol;
150
150
  exports.isPlainObject = isPlainObject.isPlainObject;
151
151
  exports.isPrimitive = isPlainObject.isPrimitive;
152
152
  exports.isTypedArray = isPlainObject.isTypedArray;
153
- exports.camelCase = pad.camelCase;
154
- exports.capitalize = pad.capitalize;
155
- exports.constantCase = pad.constantCase;
156
- exports.deburr = pad.deburr;
157
- exports.escape = pad.escape;
158
- exports.escapeRegExp = pad.escapeRegExp;
159
- exports.kebabCase = pad.kebabCase;
160
- exports.lowerCase = pad.lowerCase;
161
- exports.lowerFirst = pad.lowerFirst;
162
- exports.pad = pad.pad;
163
- exports.pascalCase = pad.pascalCase;
164
- exports.snakeCase = pad.snakeCase;
165
- exports.trim = pad.trim;
166
- exports.trimEnd = pad.trimEnd;
167
- exports.trimStart = pad.trimStart;
168
- exports.unescape = pad.unescape;
169
- exports.upperCase = pad.upperCase;
170
- exports.upperFirst = pad.upperFirst;
153
+ exports.camelCase = upperFirst.camelCase;
154
+ exports.capitalize = upperFirst.capitalize;
155
+ exports.constantCase = upperFirst.constantCase;
156
+ exports.deburr = upperFirst.deburr;
157
+ exports.escape = upperFirst.escape;
158
+ exports.escapeRegExp = upperFirst.escapeRegExp;
159
+ exports.kebabCase = upperFirst.kebabCase;
160
+ exports.lowerCase = upperFirst.lowerCase;
161
+ exports.lowerFirst = upperFirst.lowerFirst;
162
+ exports.pad = upperFirst.pad;
163
+ exports.pascalCase = upperFirst.pascalCase;
164
+ exports.snakeCase = upperFirst.snakeCase;
165
+ exports.trim = upperFirst.trim;
166
+ exports.trimEnd = upperFirst.trimEnd;
167
+ exports.trimStart = upperFirst.trimStart;
168
+ exports.unescape = upperFirst.unescape;
169
+ exports.upperCase = upperFirst.upperCase;
170
+ exports.upperFirst = upperFirst.upperFirst;
171
171
  exports.startCase = string_index.startCase;