es-toolkit 1.36.0 → 1.37.0-dev.1243
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/CHANGELOG.md +15 -0
- package/dist/_chunk/isPlainObject-DINLyA.js +281 -0
- package/dist/_chunk/isPlainObject-Xaozpc.js +93 -0
- package/dist/_chunk/{isPromise-CxqI1v.js → isWeakSet-403Sh5.js} +65 -243
- package/dist/_chunk/{range-HnEIT7.js → range-DSpBDL.js} +0 -21
- package/dist/_chunk/snakeCase-BwvoPi.js +30 -0
- package/dist/_chunk/{unary-EIEhcF.js → unary-DzPndU.js} +0 -39
- package/dist/_chunk/{reverseString-BixeGz.js → upperFirst-C7IztG.js} +9 -52
- package/dist/_chunk/{zip-BJSrRi.js → zip-CIqPLd.js} +0 -102
- package/dist/array/index.js +103 -15
- package/dist/browser.global.js +1 -1
- package/dist/browser.global.js.map +1 -1
- package/dist/compat/_internal/compareValues.mjs +0 -3
- package/dist/compat/array/initial.d.mts +16 -0
- package/dist/compat/array/initial.d.ts +16 -0
- package/dist/compat/array/initial.mjs +11 -0
- package/dist/compat/array/keyBy.d.mts +48 -0
- package/dist/compat/array/keyBy.d.ts +48 -0
- package/dist/compat/array/keyBy.mjs +21 -0
- package/dist/compat/array/sampleSize.d.mts +38 -0
- package/dist/compat/array/sampleSize.d.ts +38 -0
- package/dist/compat/array/sampleSize.mjs +18 -0
- package/dist/compat/array/shuffle.d.mts +22 -0
- package/dist/compat/array/shuffle.d.ts +22 -0
- package/dist/compat/array/shuffle.mjs +24 -0
- package/dist/compat/array/unzipWith.d.mts +78 -0
- package/dist/compat/array/unzipWith.d.ts +78 -0
- package/dist/compat/array/unzipWith.mjs +21 -0
- package/dist/compat/array/xor.d.mts +23 -0
- package/dist/compat/array/xor.d.ts +23 -0
- package/dist/compat/array/xor.mjs +30 -0
- package/dist/compat/array/xorBy.d.mts +108 -0
- package/dist/compat/array/xorBy.d.ts +108 -0
- package/dist/compat/array/xorBy.mjs +23 -0
- package/dist/compat/array/xorWith.d.mts +89 -0
- package/dist/compat/array/xorWith.d.ts +89 -0
- package/dist/compat/array/xorWith.mjs +21 -0
- package/dist/compat/compat.d.mts +25 -58
- package/dist/compat/compat.d.ts +25 -58
- package/dist/compat/compat.mjs +28 -63
- package/dist/compat/function/wrap.d.mts +27 -0
- package/dist/compat/function/wrap.d.ts +27 -0
- package/dist/compat/function/wrap.mjs +11 -0
- package/dist/compat/index.d.mts +25 -58
- package/dist/compat/index.d.ts +25 -58
- package/dist/compat/index.js +4688 -327
- package/dist/compat/index.mjs +28 -63
- package/dist/compat/object/omitBy.d.mts +22 -0
- package/dist/compat/object/omitBy.d.ts +22 -0
- package/dist/compat/object/omitBy.mjs +26 -0
- package/dist/compat/object/result.d.mts +33 -0
- package/dist/compat/object/result.d.ts +33 -0
- package/dist/compat/object/result.mjs +24 -0
- package/dist/compat/object/transform.d.mts +59 -0
- package/dist/compat/object/transform.d.ts +59 -0
- package/dist/compat/object/transform.mjs +30 -0
- package/dist/compat/util/toString.mjs +3 -0
- package/dist/function/index.js +39 -3
- package/dist/index.js +93 -92
- package/dist/math/index.js +22 -3
- package/dist/object/index.js +122 -15
- package/dist/object/toCamelCaseKeys.mjs +2 -12
- package/dist/object/toSnakeCaseKeys.mjs +1 -11
- package/dist/predicate/index.js +113 -30
- package/dist/string/index.js +37 -22
- package/dist/util/index.js +19 -4
- package/package.json +1 -1
- package/dist/_chunk/invariant-BfGFfr.js +0 -21
- package/dist/_chunk/toSnakeCaseKeys-DZO2eB.js +0 -4901
package/dist/compat/index.d.ts
CHANGED
|
@@ -1,61 +1,3 @@
|
|
|
1
|
-
export { countBy } from '../array/countBy.js';
|
|
2
|
-
export { flatMapDeep } from '../array/flatMapDeep.js';
|
|
3
|
-
export { initial } from '../array/initial.js';
|
|
4
|
-
export { isSubset } from '../array/isSubset.js';
|
|
5
|
-
export { isSubsetWith } from '../array/isSubsetWith.js';
|
|
6
|
-
export { keyBy } from '../array/keyBy.js';
|
|
7
|
-
export { sampleSize } from '../array/sampleSize.js';
|
|
8
|
-
export { shuffle } from '../array/shuffle.js';
|
|
9
|
-
export { toFilled } from '../array/toFilled.js';
|
|
10
|
-
export { unzipWith } from '../array/unzipWith.js';
|
|
11
|
-
export { windowed } from '../array/windowed.js';
|
|
12
|
-
export { xor } from '../array/xor.js';
|
|
13
|
-
export { xorBy } from '../array/xorBy.js';
|
|
14
|
-
export { xorWith } from '../array/xorWith.js';
|
|
15
|
-
export { AbortError } from '../error/AbortError.js';
|
|
16
|
-
export { TimeoutError } from '../error/TimeoutError.js';
|
|
17
|
-
export { asyncNoop } from '../function/asyncNoop.js';
|
|
18
|
-
export { identity } from '../function/identity.js';
|
|
19
|
-
export { MemoizeCache, memoize } from '../function/memoize.js';
|
|
20
|
-
export { noop } from '../function/noop.js';
|
|
21
|
-
export { once } from '../function/once.js';
|
|
22
|
-
export { retry } from '../function/retry.js';
|
|
23
|
-
export { ThrottledFunction } from '../function/throttle.js';
|
|
24
|
-
export { unary } from '../function/unary.js';
|
|
25
|
-
export { median } from '../math/median.js';
|
|
26
|
-
export { medianBy } from '../math/medianBy.js';
|
|
27
|
-
export { randomInt } from '../math/randomInt.js';
|
|
28
|
-
export { clone } from '../object/clone.js';
|
|
29
|
-
export { flattenObject } from '../object/flattenObject.js';
|
|
30
|
-
export { invert } from '../object/invert.js';
|
|
31
|
-
export { omitBy } from '../object/omitBy.js';
|
|
32
|
-
export { toCamelCaseKeys } from '../object/toCamelCaseKeys.js';
|
|
33
|
-
export { toMerged } from '../object/toMerged.js';
|
|
34
|
-
export { toSnakeCaseKeys } from '../object/toSnakeCaseKeys.js';
|
|
35
|
-
export { isBlob } from '../predicate/isBlob.js';
|
|
36
|
-
export { isBrowser } from '../predicate/isBrowser.js';
|
|
37
|
-
export { isEqual } from '../predicate/isEqual.js';
|
|
38
|
-
export { isFile } from '../predicate/isFile.js';
|
|
39
|
-
export { isFunction } from '../predicate/isFunction.js';
|
|
40
|
-
export { isJSON } from '../predicate/isJSON.js';
|
|
41
|
-
export { isJSONArray, isJSONObject, isJSONValue } from '../predicate/isJSONValue.js';
|
|
42
|
-
export { isLength } from '../predicate/isLength.js';
|
|
43
|
-
export { isNode } from '../predicate/isNode.js';
|
|
44
|
-
export { isNotNil } from '../predicate/isNotNil.js';
|
|
45
|
-
export { isNull } from '../predicate/isNull.js';
|
|
46
|
-
export { isPrimitive } from '../predicate/isPrimitive.js';
|
|
47
|
-
export { isPromise } from '../predicate/isPromise.js';
|
|
48
|
-
export { isUndefined } from '../predicate/isUndefined.js';
|
|
49
|
-
export { Mutex } from '../promise/mutex.js';
|
|
50
|
-
export { Semaphore } from '../promise/semaphore.js';
|
|
51
|
-
export { timeout } from '../promise/timeout.js';
|
|
52
|
-
export { withTimeout } from '../promise/withTimeout.js';
|
|
53
|
-
export { capitalize } from '../string/capitalize.js';
|
|
54
|
-
export { constantCase } from '../string/constantCase.js';
|
|
55
|
-
export { pascalCase } from '../string/pascalCase.js';
|
|
56
|
-
export { reverseString } from '../string/reverseString.js';
|
|
57
|
-
export { attemptAsync } from '../util/attemptAsync.js';
|
|
58
|
-
export { invariant } from '../util/invariant.js';
|
|
59
1
|
export { castArray } from './array/castArray.js';
|
|
60
2
|
export { chunk } from './array/chunk.js';
|
|
61
3
|
export { compact } from './array/compact.js';
|
|
@@ -84,10 +26,12 @@ export { groupBy } from './array/groupBy.js';
|
|
|
84
26
|
export { head as first, head } from './array/head.js';
|
|
85
27
|
export { includes } from './array/includes.js';
|
|
86
28
|
export { indexOf } from './array/indexOf.js';
|
|
29
|
+
export { initial } from './array/initial.js';
|
|
87
30
|
export { intersection } from './array/intersection.js';
|
|
88
31
|
export { intersectionBy } from './array/intersectionBy.js';
|
|
89
32
|
export { intersectionWith } from './array/intersectionWith.js';
|
|
90
33
|
export { join } from './array/join.js';
|
|
34
|
+
export { keyBy } from './array/keyBy.js';
|
|
91
35
|
export { last } from './array/last.js';
|
|
92
36
|
export { lastIndexOf } from './array/lastIndexOf.js';
|
|
93
37
|
export { map } from './array/map.js';
|
|
@@ -105,6 +49,8 @@ export { reject } from './array/reject.js';
|
|
|
105
49
|
export { remove } from './array/remove.js';
|
|
106
50
|
export { reverse } from './array/reverse.js';
|
|
107
51
|
export { sample } from './array/sample.js';
|
|
52
|
+
export { sampleSize } from './array/sampleSize.js';
|
|
53
|
+
export { shuffle } from './array/shuffle.js';
|
|
108
54
|
export { size } from './array/size.js';
|
|
109
55
|
export { slice } from './array/slice.js';
|
|
110
56
|
export { some } from './array/some.js';
|
|
@@ -126,7 +72,11 @@ export { uniq } from './array/uniq.js';
|
|
|
126
72
|
export { uniqBy } from './array/uniqBy.js';
|
|
127
73
|
export { uniqWith } from './array/uniqWith.js';
|
|
128
74
|
export { unzip } from './array/unzip.js';
|
|
75
|
+
export { unzipWith } from './array/unzipWith.js';
|
|
129
76
|
export { without } from './array/without.js';
|
|
77
|
+
export { xor } from './array/xor.js';
|
|
78
|
+
export { xorBy } from './array/xorBy.js';
|
|
79
|
+
export { xorWith } from './array/xorWith.js';
|
|
130
80
|
export { zip } from './array/zip.js';
|
|
131
81
|
export { zipObject } from './array/zipObject.js';
|
|
132
82
|
export { zipObjectDeep } from './array/zipObjectDeep.js';
|
|
@@ -145,14 +95,18 @@ export { delay } from './function/delay.js';
|
|
|
145
95
|
export { flip } from './function/flip.js';
|
|
146
96
|
export { flow } from './function/flow.js';
|
|
147
97
|
export { flowRight } from './function/flowRight.js';
|
|
98
|
+
export { memoize } from '../function/memoize.js';
|
|
148
99
|
export { negate } from './function/negate.js';
|
|
149
100
|
export { nthArg } from './function/nthArg.js';
|
|
101
|
+
export { once } from '../function/once.js';
|
|
150
102
|
export { partial } from './function/partial.js';
|
|
151
103
|
export { partialRight } from './function/partialRight.js';
|
|
152
104
|
export { rearg } from './function/rearg.js';
|
|
153
105
|
export { rest } from './function/rest.js';
|
|
154
106
|
export { spread } from './function/spread.js';
|
|
155
107
|
export { throttle } from './function/throttle.js';
|
|
108
|
+
export { unary } from '../function/unary.js';
|
|
109
|
+
export { wrap } from './function/wrap.js';
|
|
156
110
|
export { add } from './math/add.js';
|
|
157
111
|
export { ceil } from './math/ceil.js';
|
|
158
112
|
export { clamp } from './math/clamp.js';
|
|
@@ -179,11 +133,13 @@ export { assignIn, assignIn as extend } from './object/assignIn.js';
|
|
|
179
133
|
export { assignInWith, assignInWith as extendWith } from './object/assignInWith.js';
|
|
180
134
|
export { assignWith } from './object/assignWith.js';
|
|
181
135
|
export { at } from './object/at.js';
|
|
136
|
+
export { clone } from '../object/clone.js';
|
|
182
137
|
export { cloneDeep } from './object/cloneDeep.js';
|
|
183
138
|
export { cloneDeepWith } from './object/cloneDeepWith.js';
|
|
184
139
|
export { create } from './object/create.js';
|
|
185
140
|
export { defaults } from './object/defaults.js';
|
|
186
141
|
export { findKey } from './object/findKey.js';
|
|
142
|
+
export { identity } from '../function/identity.js';
|
|
187
143
|
export { forIn } from './object/forIn.js';
|
|
188
144
|
export { forInRight } from './object/forInRight.js';
|
|
189
145
|
export { forOwn } from './object/forOwn.js';
|
|
@@ -194,27 +150,38 @@ export { functionsIn } from './object/functionsIn.js';
|
|
|
194
150
|
export { get } from './object/get.js';
|
|
195
151
|
export { has } from './object/has.js';
|
|
196
152
|
export { hasIn } from './object/hasIn.js';
|
|
153
|
+
export { invert } from '../object/invert.js';
|
|
197
154
|
export { invertBy } from './object/invertBy.js';
|
|
155
|
+
export { isEqual } from '../predicate/isEqual.js';
|
|
156
|
+
export { isFunction } from '../predicate/isFunction.js';
|
|
157
|
+
export { isLength } from '../predicate/isLength.js';
|
|
158
|
+
export { isNull } from '../predicate/isNull.js';
|
|
159
|
+
export { isUndefined } from '../predicate/isUndefined.js';
|
|
198
160
|
export { keys } from './object/keys.js';
|
|
199
161
|
export { keysIn } from './object/keysIn.js';
|
|
200
162
|
export { mapKeys } from './object/mapKeys.js';
|
|
201
163
|
export { mapValues } from './object/mapValues.js';
|
|
202
164
|
export { merge } from './object/merge.js';
|
|
203
165
|
export { mergeWith } from './object/mergeWith.js';
|
|
166
|
+
export { noop } from '../function/noop.js';
|
|
204
167
|
export { omit } from './object/omit.js';
|
|
168
|
+
export { omitBy } from './object/omitBy.js';
|
|
205
169
|
export { pick } from './object/pick.js';
|
|
206
170
|
export { pickBy } from './object/pickBy.js';
|
|
207
171
|
export { property } from './object/property.js';
|
|
208
172
|
export { propertyOf } from './object/propertyOf.js';
|
|
173
|
+
export { result } from './object/result.js';
|
|
209
174
|
export { set } from './object/set.js';
|
|
210
175
|
export { toDefaulted } from './object/toDefaulted.js';
|
|
211
176
|
export { toPairs } from './object/toPairs.js';
|
|
212
177
|
export { toPairsIn } from './object/toPairsIn.js';
|
|
178
|
+
export { transform } from './object/transform.js';
|
|
213
179
|
export { unset } from './object/unset.js';
|
|
214
180
|
export { update } from './object/update.js';
|
|
215
181
|
export { updateWith } from './object/updateWith.js';
|
|
216
182
|
export { values } from './object/values.js';
|
|
217
183
|
export { valuesIn } from './object/valuesIn.js';
|
|
184
|
+
export { capitalize } from '../string/capitalize.js';
|
|
218
185
|
export { conforms } from './predicate/conforms.js';
|
|
219
186
|
export { conformsTo } from './predicate/conformsTo.js';
|
|
220
187
|
export { isArguments } from './predicate/isArguments.js';
|