es-toolkit 1.9.0-dev.191 → 1.9.0-dev.192
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.
- package/dist/array/chunk.mjs +1 -1
- package/dist/array/compact.mjs +1 -1
- package/dist/array/countBy.mjs +1 -1
- package/dist/array/difference.mjs +1 -1
- package/dist/array/differenceBy.mjs +1 -1
- package/dist/array/differenceWith.mjs +1 -1
- package/dist/array/drop.mjs +1 -1
- package/dist/array/dropRight.mjs +1 -1
- package/dist/array/dropRightWhile.mjs +1 -1
- package/dist/array/dropWhile.mjs +1 -1
- package/dist/array/fill.mjs +1 -1
- package/dist/array/flatten.mjs +1 -1
- package/dist/array/flattenDeep.mjs +1 -1
- package/dist/array/forEachRight.mjs +1 -1
- package/dist/array/groupBy.mjs +1 -1
- package/dist/array/head.mjs +1 -1
- package/dist/array/index.mjs +34 -34
- package/dist/array/initial.mjs +1 -1
- package/dist/array/intersection.mjs +1 -1
- package/dist/array/intersectionBy.mjs +1 -1
- package/dist/array/intersectionWith.mjs +1 -1
- package/dist/array/keyBy.mjs +1 -1
- package/dist/array/last.mjs +1 -1
- package/dist/array/maxBy.mjs +1 -1
- package/dist/array/minBy.mjs +1 -1
- package/dist/array/orderBy.mjs +1 -1
- package/dist/array/partition.mjs +1 -1
- package/dist/array/sample.mjs +1 -1
- package/dist/array/sampleSize.mjs +1 -1
- package/dist/array/shuffle.mjs +1 -1
- package/dist/array/tail.mjs +1 -1
- package/dist/array/take.mjs +1 -1
- package/dist/array/takeRight.mjs +1 -1
- package/dist/array/takeRightWhile.mjs +1 -1
- package/dist/array/takeWhile.mjs +1 -1
- package/dist/array/toFilled.mjs +1 -1
- package/dist/array/union.mjs +1 -1
- package/dist/array/unionBy.mjs +1 -1
- package/dist/array/unionWith.mjs +1 -1
- package/dist/array/uniq.mjs +1 -1
- package/dist/array/uniqBy.mjs +1 -1
- package/dist/array/uniqWith.mjs +1 -1
- package/dist/array/unzip.mjs +1 -1
- package/dist/array/unzipWith.mjs +1 -1
- package/dist/array/without.mjs +1 -1
- package/dist/array/xor.mjs +1 -1
- package/dist/array/xorBy.mjs +1 -1
- package/dist/array/xorWith.mjs +1 -1
- package/dist/array/zip.mjs +1 -1
- package/dist/array/zipObject.mjs +1 -1
- package/dist/array/zipWith.mjs +1 -1
- package/dist/chunk-2HIMLZE3.mjs +46 -0
- package/dist/{chunk-QZITBKWX.mjs → chunk-4E4D3BMI.mjs} +2 -2
- package/dist/chunk-QKYYOLJ6.mjs +1 -0
- package/dist/chunk-XGCYC4YA.mjs +5516 -0
- package/dist/chunk-XGCYC4YA.mjs.map +1 -0
- package/dist/error/AbortError.mjs +1 -1
- package/dist/error/index.mjs +1 -1
- package/dist/function/debounce.mjs +1 -1
- package/dist/function/index.mjs +1 -1
- package/dist/function/noop.mjs +1 -1
- package/dist/function/once.mjs +1 -1
- package/dist/function/throttle.mjs +1 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5523 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +66 -62
- package/dist/math/clamp.mjs +1 -1
- package/dist/math/inRange.mjs +1 -1
- package/dist/math/index.mjs +4 -4
- package/dist/math/mean.mjs +1 -1
- package/dist/math/meanBy.mjs +1 -1
- package/dist/math/random.mjs +1 -1
- package/dist/math/randomInt.mjs +1 -1
- package/dist/math/range.mjs +1 -1
- package/dist/math/round.mjs +1 -1
- package/dist/math/sum.mjs +1 -1
- package/dist/object/index.mjs +2 -2
- package/dist/object/invert.mjs +1 -1
- package/dist/object/omit.mjs +2 -2
- package/dist/object/omitBy.mjs +1 -1
- package/dist/object/pick.mjs +1 -1
- package/dist/object/pickBy.mjs +1 -1
- package/dist/predicate/index.mjs +1 -1
- package/dist/predicate/isNil.mjs +1 -1
- package/dist/predicate/isNotNil.mjs +1 -1
- package/dist/predicate/isNull.mjs +1 -1
- package/dist/predicate/isUndefined.mjs +1 -1
- package/dist/promise/delay.mjs +1 -1
- package/dist/promise/index.mjs +1 -1
- package/dist/string/camelCase.d.mts +17 -0
- package/dist/string/camelCase.d.ts +17 -0
- package/dist/string/camelCase.js +5554 -0
- package/dist/string/camelCase.js.map +1 -0
- package/dist/string/camelCase.mjs +9 -0
- package/dist/string/camelCase.mjs.map +1 -0
- package/dist/string/capitalize.mjs +1 -1
- package/dist/string/index.d.mts +1 -0
- package/dist/string/index.d.ts +1 -0
- package/dist/string/index.js +5523 -2
- package/dist/string/index.js.map +1 -1
- package/dist/string/index.mjs +6 -2
- package/dist/string/kebabCase.mjs +1 -1
- package/dist/string/lowerCase.mjs +1 -1
- package/dist/string/snakeCase.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-2MM5EJJX.mjs +0 -21
- package/dist/chunk-HXGADE4C.mjs +0 -1
- /package/dist/{chunk-2MM5EJJX.mjs.map → chunk-2HIMLZE3.mjs.map} +0 -0
- /package/dist/{chunk-QZITBKWX.mjs.map → chunk-4E4D3BMI.mjs.map} +0 -0
- /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-
|
|
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,30 +47,14 @@ import {
|
|
|
44
47
|
} from "./chunk-74WWMNZS.mjs";
|
|
45
48
|
import {
|
|
46
49
|
omit
|
|
47
|
-
} from "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import {
|
|
50
|
-
range
|
|
51
|
-
} from "./chunk-DPH2KE6O.mjs";
|
|
52
|
-
import {
|
|
53
|
-
round
|
|
54
|
-
} from "./chunk-5PMKOZ2F.mjs";
|
|
55
|
-
import {
|
|
56
|
-
clamp
|
|
57
|
-
} from "./chunk-MLCL773E.mjs";
|
|
58
|
-
import {
|
|
59
|
-
inRange
|
|
60
|
-
} from "./chunk-BH6HLGBA.mjs";
|
|
61
|
-
import {
|
|
62
|
-
meanBy
|
|
63
|
-
} from "./chunk-IZAD2S7R.mjs";
|
|
50
|
+
} from "./chunk-4E4D3BMI.mjs";
|
|
51
|
+
import "./chunk-2MRZANXZ.mjs";
|
|
64
52
|
import {
|
|
65
|
-
|
|
66
|
-
} from "./chunk-
|
|
53
|
+
xorBy
|
|
54
|
+
} from "./chunk-Q47NGNXT.mjs";
|
|
67
55
|
import {
|
|
68
|
-
|
|
69
|
-
} from "./chunk-
|
|
70
|
-
import "./chunk-2MRZANXZ.mjs";
|
|
56
|
+
xorWith
|
|
57
|
+
} from "./chunk-QRSJBBFY.mjs";
|
|
71
58
|
import {
|
|
72
59
|
zip
|
|
73
60
|
} from "./chunk-IDCUZVJL.mjs";
|
|
@@ -77,9 +64,15 @@ import {
|
|
|
77
64
|
import {
|
|
78
65
|
zipWith
|
|
79
66
|
} from "./chunk-4KYXHZ4R.mjs";
|
|
67
|
+
import {
|
|
68
|
+
unionWith
|
|
69
|
+
} from "./chunk-2ZCITDMK.mjs";
|
|
80
70
|
import {
|
|
81
71
|
uniqBy
|
|
82
72
|
} from "./chunk-OXAZEEGP.mjs";
|
|
73
|
+
import {
|
|
74
|
+
uniqWith
|
|
75
|
+
} from "./chunk-237HGSZS.mjs";
|
|
83
76
|
import {
|
|
84
77
|
unzip
|
|
85
78
|
} from "./chunk-UYZKMBDO.mjs";
|
|
@@ -93,11 +86,11 @@ import {
|
|
|
93
86
|
xor
|
|
94
87
|
} from "./chunk-L7FQX5MN.mjs";
|
|
95
88
|
import {
|
|
96
|
-
|
|
97
|
-
} from "./chunk-
|
|
89
|
+
tail
|
|
90
|
+
} from "./chunk-OF6NM4G7.mjs";
|
|
98
91
|
import {
|
|
99
|
-
|
|
100
|
-
} from "./chunk-
|
|
92
|
+
take
|
|
93
|
+
} from "./chunk-ME352XO7.mjs";
|
|
101
94
|
import {
|
|
102
95
|
takeRight
|
|
103
96
|
} from "./chunk-IQLKIDXF.mjs";
|
|
@@ -113,18 +106,18 @@ import {
|
|
|
113
106
|
import {
|
|
114
107
|
union
|
|
115
108
|
} from "./chunk-R6QA7PLZ.mjs";
|
|
109
|
+
import {
|
|
110
|
+
uniq
|
|
111
|
+
} from "./chunk-DVK2N4KC.mjs";
|
|
116
112
|
import {
|
|
117
113
|
unionBy
|
|
118
114
|
} from "./chunk-NFS7RWWE.mjs";
|
|
119
115
|
import {
|
|
120
|
-
|
|
121
|
-
} from "./chunk-
|
|
122
|
-
import {
|
|
123
|
-
uniqWith
|
|
124
|
-
} from "./chunk-237HGSZS.mjs";
|
|
116
|
+
last
|
|
117
|
+
} from "./chunk-KPBQ7OUY.mjs";
|
|
125
118
|
import {
|
|
126
|
-
|
|
127
|
-
} from "./chunk-
|
|
119
|
+
maxBy
|
|
120
|
+
} from "./chunk-OOKNBU4V.mjs";
|
|
128
121
|
import {
|
|
129
122
|
minBy
|
|
130
123
|
} from "./chunk-IJD7FE2Z.mjs";
|
|
@@ -140,21 +133,15 @@ import {
|
|
|
140
133
|
import {
|
|
141
134
|
sampleSize
|
|
142
135
|
} from "./chunk-EHSKB6DF.mjs";
|
|
143
|
-
import {
|
|
144
|
-
randomInt
|
|
145
|
-
} from "./chunk-GIWAOOFY.mjs";
|
|
146
|
-
import {
|
|
147
|
-
random
|
|
148
|
-
} from "./chunk-SYWMYQYJ.mjs";
|
|
149
136
|
import {
|
|
150
137
|
shuffle
|
|
151
138
|
} from "./chunk-G7UQ5PUR.mjs";
|
|
152
139
|
import {
|
|
153
|
-
|
|
154
|
-
} from "./chunk-
|
|
140
|
+
groupBy
|
|
141
|
+
} from "./chunk-E6E4RZLN.mjs";
|
|
155
142
|
import {
|
|
156
|
-
|
|
157
|
-
} from "./chunk-
|
|
143
|
+
head
|
|
144
|
+
} from "./chunk-HM2JT2RX.mjs";
|
|
158
145
|
import {
|
|
159
146
|
initial
|
|
160
147
|
} from "./chunk-XPSOKBRZ.mjs";
|
|
@@ -171,11 +158,11 @@ import {
|
|
|
171
158
|
keyBy
|
|
172
159
|
} from "./chunk-AJKZMN2V.mjs";
|
|
173
160
|
import {
|
|
174
|
-
|
|
175
|
-
} from "./chunk-
|
|
161
|
+
drop
|
|
162
|
+
} from "./chunk-S3CORED5.mjs";
|
|
176
163
|
import {
|
|
177
|
-
|
|
178
|
-
} from "./chunk-
|
|
164
|
+
dropRight
|
|
165
|
+
} from "./chunk-JEKUA56R.mjs";
|
|
179
166
|
import {
|
|
180
167
|
dropRightWhile
|
|
181
168
|
} from "./chunk-JE6JKZU3.mjs";
|
|
@@ -194,12 +181,6 @@ import {
|
|
|
194
181
|
import {
|
|
195
182
|
forEachRight
|
|
196
183
|
} from "./chunk-IEA53J7P.mjs";
|
|
197
|
-
import {
|
|
198
|
-
groupBy
|
|
199
|
-
} from "./chunk-E6E4RZLN.mjs";
|
|
200
|
-
import {
|
|
201
|
-
head
|
|
202
|
-
} from "./chunk-HM2JT2RX.mjs";
|
|
203
184
|
import {
|
|
204
185
|
chunk
|
|
205
186
|
} from "./chunk-E6C5EZQA.mjs";
|
|
@@ -218,16 +199,34 @@ import {
|
|
|
218
199
|
import {
|
|
219
200
|
differenceWith
|
|
220
201
|
} from "./chunk-6NVQAHXP.mjs";
|
|
202
|
+
import "./chunk-TLVQSNOE.mjs";
|
|
221
203
|
import {
|
|
222
|
-
|
|
223
|
-
} from "./chunk-
|
|
204
|
+
round
|
|
205
|
+
} from "./chunk-5PMKOZ2F.mjs";
|
|
224
206
|
import {
|
|
225
|
-
|
|
226
|
-
} from "./chunk-
|
|
227
|
-
import "./chunk-FZEZH22H.mjs";
|
|
207
|
+
clamp
|
|
208
|
+
} from "./chunk-MLCL773E.mjs";
|
|
228
209
|
import {
|
|
229
|
-
|
|
230
|
-
} from "./chunk-
|
|
210
|
+
inRange
|
|
211
|
+
} from "./chunk-BH6HLGBA.mjs";
|
|
212
|
+
import {
|
|
213
|
+
meanBy
|
|
214
|
+
} from "./chunk-IZAD2S7R.mjs";
|
|
215
|
+
import {
|
|
216
|
+
mean
|
|
217
|
+
} from "./chunk-GDC64SYJ.mjs";
|
|
218
|
+
import {
|
|
219
|
+
sum
|
|
220
|
+
} from "./chunk-2SLTL4KL.mjs";
|
|
221
|
+
import {
|
|
222
|
+
randomInt
|
|
223
|
+
} from "./chunk-GIWAOOFY.mjs";
|
|
224
|
+
import {
|
|
225
|
+
random
|
|
226
|
+
} from "./chunk-SYWMYQYJ.mjs";
|
|
227
|
+
import {
|
|
228
|
+
range
|
|
229
|
+
} from "./chunk-DPH2KE6O.mjs";
|
|
231
230
|
import "./chunk-N6EM6ETS.mjs";
|
|
232
231
|
import {
|
|
233
232
|
debounce
|
|
@@ -241,9 +240,14 @@ import {
|
|
|
241
240
|
import {
|
|
242
241
|
throttle
|
|
243
242
|
} from "./chunk-QOJGMVVR.mjs";
|
|
244
|
-
import "./chunk-
|
|
243
|
+
import "./chunk-FZEZH22H.mjs";
|
|
244
|
+
import {
|
|
245
|
+
AbortError
|
|
246
|
+
} from "./chunk-DXB7EZUQ.mjs";
|
|
247
|
+
import "./chunk-2HIMLZE3.mjs";
|
|
245
248
|
export {
|
|
246
249
|
AbortError,
|
|
250
|
+
camelCase,
|
|
247
251
|
capitalize,
|
|
248
252
|
chunk,
|
|
249
253
|
clamp,
|
package/dist/math/clamp.mjs
CHANGED
package/dist/math/inRange.mjs
CHANGED
package/dist/math/index.mjs
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import "../chunk-TLVQSNOE.mjs";
|
|
2
|
-
import {
|
|
3
|
-
range
|
|
4
|
-
} from "../chunk-DPH2KE6O.mjs";
|
|
5
2
|
import {
|
|
6
3
|
round
|
|
7
4
|
} from "../chunk-5PMKOZ2F.mjs";
|
|
@@ -26,7 +23,10 @@ import {
|
|
|
26
23
|
import {
|
|
27
24
|
random
|
|
28
25
|
} from "../chunk-SYWMYQYJ.mjs";
|
|
29
|
-
import
|
|
26
|
+
import {
|
|
27
|
+
range
|
|
28
|
+
} from "../chunk-DPH2KE6O.mjs";
|
|
29
|
+
import "../chunk-2HIMLZE3.mjs";
|
|
30
30
|
export {
|
|
31
31
|
clamp,
|
|
32
32
|
inRange,
|
package/dist/math/mean.mjs
CHANGED
package/dist/math/meanBy.mjs
CHANGED
package/dist/math/random.mjs
CHANGED
package/dist/math/randomInt.mjs
CHANGED
package/dist/math/range.mjs
CHANGED
package/dist/math/round.mjs
CHANGED
package/dist/math/sum.mjs
CHANGED
package/dist/object/index.mjs
CHANGED
package/dist/object/invert.mjs
CHANGED
package/dist/object/omit.mjs
CHANGED
package/dist/object/omitBy.mjs
CHANGED
package/dist/object/pick.mjs
CHANGED
package/dist/object/pickBy.mjs
CHANGED
package/dist/predicate/index.mjs
CHANGED
package/dist/predicate/isNil.mjs
CHANGED
package/dist/promise/delay.mjs
CHANGED
package/dist/promise/index.mjs
CHANGED
|
@@ -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 };
|