es-toolkit 1.9.0-dev.191 → 1.9.0-dev.193
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 +1 -1
- 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 +7 -3
- package/dist/math/clamp.mjs +1 -1
- package/dist/math/inRange.mjs +1 -1
- package/dist/math/index.mjs +1 -1
- 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,7 +47,7 @@ import {
|
|
|
44
47
|
} from "./chunk-74WWMNZS.mjs";
|
|
45
48
|
import {
|
|
46
49
|
omit
|
|
47
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-4E4D3BMI.mjs";
|
|
48
51
|
import "./chunk-TLVQSNOE.mjs";
|
|
49
52
|
import {
|
|
50
53
|
range
|
|
@@ -241,9 +244,10 @@ import {
|
|
|
241
244
|
import {
|
|
242
245
|
throttle
|
|
243
246
|
} from "./chunk-QOJGMVVR.mjs";
|
|
244
|
-
import "./chunk-
|
|
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
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 };
|