es-toolkit 1.18.0 → 1.19.0-dev.605
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 +11 -0
- package/dist/_chunk/{rest-CXt9w3.js → curry-BmwJrK.js} +21 -0
- package/dist/_chunk/{isWeakSet-CogETi.js → isWeakSet-E_VMwB.js} +9 -3
- package/dist/_chunk/range-BXlMmn.js +68 -0
- package/dist/_chunk/{toMerged-DN1PPP.js → toMerged-Bzkqyz.js} +28 -46
- package/dist/_chunk/{zipWith-CYaH1Y.js → zipWith-B-5AMf.js} +1 -1
- package/dist/array/forEachRight.d.mts +23 -0
- package/dist/array/forEachRight.d.ts +23 -0
- package/dist/array/groupBy.mjs +1 -1
- package/dist/array/index.js +1 -1
- package/dist/array/orderBy.d.mts +1 -1
- package/dist/array/orderBy.d.ts +1 -1
- package/dist/array/sortBy.d.mts +1 -1
- package/dist/array/sortBy.d.ts +1 -1
- package/dist/array/unzip.d.mts +1 -1
- package/dist/array/unzip.d.ts +1 -1
- package/dist/array/zipObject.d.mts +1 -1
- package/dist/array/zipObject.d.ts +1 -1
- package/dist/browser.global.js +1 -1
- package/dist/browser.global.js.map +1 -1
- package/dist/compat/_internal/decimalAdjust.mjs +19 -0
- package/dist/compat/_internal/isDeepKey.mjs +1 -3
- package/dist/compat/_internal/normalizeForCase.mjs +5 -4
- package/dist/compat/_internal/toKey.mjs +2 -7
- package/dist/compat/array/flatten.d.mts +1 -1
- package/dist/compat/array/flatten.d.ts +1 -1
- package/dist/compat/array/flattenDepth.d.mts +1 -1
- package/dist/compat/array/flattenDepth.d.ts +1 -1
- package/dist/compat/array/indexOf.d.mts +1 -1
- package/dist/compat/array/indexOf.d.ts +1 -1
- package/dist/compat/array/orderBy.d.mts +1 -1
- package/dist/compat/array/orderBy.d.ts +1 -1
- package/dist/compat/array/orderBy.mjs +1 -1
- package/dist/compat/array/size.d.mts +1 -1
- package/dist/compat/array/size.d.ts +1 -1
- package/dist/compat/array/sortBy.d.mts +1 -1
- package/dist/compat/array/sortBy.d.ts +1 -1
- package/dist/compat/array/zipObjectDeep.d.mts +1 -1
- package/dist/compat/array/zipObjectDeep.d.ts +1 -1
- package/dist/compat/index.d.mts +20 -7
- package/dist/compat/index.d.ts +20 -7
- package/dist/compat/index.js +459 -137
- package/dist/compat/index.mjs +20 -7
- package/dist/compat/math/ceil.d.mts +15 -0
- package/dist/compat/math/ceil.d.ts +15 -0
- package/dist/compat/math/ceil.mjs +7 -0
- package/dist/compat/math/floor.d.mts +15 -0
- package/dist/compat/math/floor.d.ts +15 -0
- package/dist/compat/math/floor.mjs +7 -0
- package/dist/compat/math/round.d.mts +15 -0
- package/dist/compat/math/round.d.ts +15 -0
- package/dist/compat/math/round.mjs +7 -0
- package/dist/compat/object/fromPairs.d.mts +2 -2
- package/dist/compat/object/fromPairs.d.ts +2 -2
- package/dist/compat/object/get.d.mts +12 -12
- package/dist/compat/object/get.d.ts +12 -12
- package/dist/compat/object/get.mjs +54 -17
- package/dist/compat/object/has.mjs +1 -1
- package/dist/compat/object/mergeWith.mjs +14 -2
- package/dist/compat/object/omit.d.mts +34 -0
- package/dist/compat/object/omit.d.ts +34 -0
- package/dist/compat/object/omit.mjs +33 -0
- package/dist/compat/object/pick.d.mts +47 -0
- package/dist/compat/object/pick.d.ts +47 -0
- package/dist/compat/object/pick.mjs +38 -0
- package/dist/compat/object/set.mjs +1 -1
- package/dist/compat/object/unset.d.mts +20 -0
- package/dist/compat/object/unset.d.ts +20 -0
- package/dist/compat/object/unset.mjs +68 -0
- package/dist/compat/predicate/isInteger.d.mts +17 -0
- package/dist/compat/predicate/isInteger.d.ts +17 -0
- package/dist/compat/predicate/isInteger.mjs +5 -0
- package/dist/compat/predicate/isMatch.mjs +44 -4
- package/dist/compat/predicate/isNil.mjs +5 -0
- package/dist/compat/predicate/isObject.d.mts +4 -4
- package/dist/compat/predicate/isObject.d.ts +4 -4
- package/dist/compat/predicate/isSafeInteger.d.mts +20 -0
- package/dist/compat/predicate/isSafeInteger.d.ts +20 -0
- package/dist/compat/predicate/isSafeInteger.mjs +5 -0
- package/dist/compat/predicate/matchesProperty.mjs +12 -1
- package/dist/compat/string/kebabCase.d.mts +17 -0
- package/dist/compat/string/kebabCase.d.ts +17 -0
- package/dist/compat/string/kebabCase.mjs +9 -0
- package/dist/compat/string/lowerCase.d.mts +17 -0
- package/dist/compat/string/lowerCase.d.ts +17 -0
- package/dist/compat/string/lowerCase.mjs +8 -0
- package/dist/compat/string/snakeCase.d.mts +17 -0
- package/dist/compat/string/snakeCase.d.ts +17 -0
- package/dist/compat/string/snakeCase.mjs +8 -0
- package/dist/compat/string/startCase.d.mts +16 -0
- package/dist/compat/string/startCase.d.ts +16 -0
- package/dist/compat/string/startCase.mjs +8 -0
- package/dist/compat/string/trim.d.mts +16 -0
- package/dist/compat/string/trim.d.ts +16 -0
- package/dist/compat/string/trim.mjs +25 -0
- package/dist/compat/string/trimEnd.d.mts +17 -0
- package/dist/compat/string/trimEnd.d.ts +17 -0
- package/dist/compat/string/trimEnd.mjs +25 -0
- package/dist/compat/string/trimStart.d.mts +17 -0
- package/dist/compat/string/trimStart.d.ts +17 -0
- package/dist/compat/string/trimStart.mjs +25 -0
- package/dist/compat/util/toPath.d.mts +20 -0
- package/dist/compat/util/toPath.d.ts +20 -0
- package/dist/compat/util/toPath.mjs +37 -0
- package/dist/compat/util/toString.d.mts +19 -0
- package/dist/compat/util/toString.d.ts +19 -0
- package/dist/compat/util/toString.mjs +15 -0
- package/dist/function/curry.d.mts +127 -0
- package/dist/function/curry.d.ts +127 -0
- package/dist/function/curry.mjs +21 -0
- package/dist/function/index.d.mts +1 -0
- package/dist/function/index.d.ts +1 -0
- package/dist/function/index.js +15 -14
- package/dist/function/index.mjs +1 -0
- package/dist/index.d.mts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +40 -33
- package/dist/index.mjs +6 -0
- package/dist/math/index.js +8 -66
- package/dist/object/clone.mjs +28 -25
- package/dist/object/index.js +19 -3
- package/dist/object/pick.d.mts +1 -1
- package/dist/object/pick.d.ts +1 -1
- package/dist/predicate/index.d.mts +1 -0
- package/dist/predicate/index.d.ts +1 -0
- package/dist/predicate/index.js +6 -5
- package/dist/predicate/index.mjs +1 -0
- package/dist/predicate/isDate.d.mts +16 -0
- package/dist/predicate/isDate.d.ts +16 -0
- package/dist/predicate/isDate.mjs +5 -0
- package/dist/predicate/isNotNil.mjs +1 -1
- package/dist/string/capitalize.d.mts +1 -0
- package/dist/string/capitalize.d.ts +1 -0
- package/dist/string/index.d.mts +4 -0
- package/dist/string/index.d.ts +4 -0
- package/dist/string/index.js +65 -0
- package/dist/string/index.mjs +4 -0
- package/dist/string/startCase.d.mts +1 -1
- package/dist/string/startCase.d.ts +1 -1
- package/dist/string/trim.d.mts +15 -0
- package/dist/string/trim.d.ts +15 -0
- package/dist/string/trim.mjs +11 -0
- package/dist/string/trimEnd.d.mts +16 -0
- package/dist/string/trimEnd.d.ts +16 -0
- package/dist/string/trimEnd.mjs +22 -0
- package/dist/string/trimStart.d.mts +16 -0
- package/dist/string/trimStart.d.ts +16 -0
- package/dist/string/trimStart.mjs +22 -0
- package/dist/string/upperCase.d.mts +17 -0
- package/dist/string/upperCase.d.ts +17 -0
- package/dist/string/upperCase.mjs +15 -0
- package/package.json +1 -1
- package/dist/compat/_internal/isArrayMatch.mjs +0 -24
- package/dist/compat/_internal/isMapMatch.mjs +0 -18
- package/dist/compat/_internal/isSetMatch.mjs +0 -13
- package/dist/compat/_internal/toPath.mjs +0 -40
- package/dist/_chunk/{isTypedArray-Dsrnb1.js → isPlainObject-BIekvL.js} +8 -8
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
function decimalAdjust(type, number, precision = 0) {
|
|
2
|
+
number = Number(number);
|
|
3
|
+
if (Object.is(number, -0)) {
|
|
4
|
+
number = '-0';
|
|
5
|
+
}
|
|
6
|
+
precision = Math.min(Number.parseInt(precision, 10), 292);
|
|
7
|
+
if (precision) {
|
|
8
|
+
const [magnitude, exponent = 0] = number.toString().split('e');
|
|
9
|
+
let adjustedValue = Math[type](Number(`${magnitude}e${Number(exponent) + precision}`));
|
|
10
|
+
if (Object.is(adjustedValue, -0)) {
|
|
11
|
+
adjustedValue = '-0';
|
|
12
|
+
}
|
|
13
|
+
const [newMagnitude, newExponent = 0] = adjustedValue.toString().split('e');
|
|
14
|
+
return Number(`${newMagnitude}e${Number(newExponent) - precision}`);
|
|
15
|
+
}
|
|
16
|
+
return Math[type](Number(number));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { decimalAdjust };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
const IS_PLAIN = /^\w*$/;
|
|
2
|
-
const IS_DEEP = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;
|
|
3
1
|
function isDeepKey(key) {
|
|
4
2
|
switch (typeof key) {
|
|
5
3
|
case 'number':
|
|
@@ -7,7 +5,7 @@ function isDeepKey(key) {
|
|
|
7
5
|
return false;
|
|
8
6
|
}
|
|
9
7
|
case 'string': {
|
|
10
|
-
return
|
|
8
|
+
return key.includes('.') || key.includes('[') || key.includes(']');
|
|
11
9
|
}
|
|
12
10
|
}
|
|
13
11
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { toString } from '../util/toString.mjs';
|
|
2
|
+
|
|
1
3
|
function normalizeForCase(str) {
|
|
2
|
-
if (typeof str
|
|
3
|
-
str =
|
|
4
|
+
if (typeof str !== 'string') {
|
|
5
|
+
str = toString(str);
|
|
4
6
|
}
|
|
5
|
-
|
|
6
|
-
return str;
|
|
7
|
+
return str.replace(/['\u2019]/g, '');
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
export { normalizeForCase };
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import { isSymbol } from '../predicate/isSymbol.mjs';
|
|
2
|
-
|
|
3
1
|
function toKey(value) {
|
|
4
|
-
if (
|
|
5
|
-
return value;
|
|
6
|
-
}
|
|
7
|
-
if (Object.is(value?.valueOf(), -0)) {
|
|
2
|
+
if (Object.is(value, -0)) {
|
|
8
3
|
return '-0';
|
|
9
4
|
}
|
|
10
|
-
return
|
|
5
|
+
return value.toString();
|
|
11
6
|
}
|
|
12
7
|
|
|
13
8
|
export { toKey };
|
|
@@ -14,6 +14,6 @@
|
|
|
14
14
|
* const arr = flatten([1, [2, 3], [4, [5, 6]]], 2);
|
|
15
15
|
* // Returns: [1, 2, 3, 4, 5, 6]
|
|
16
16
|
*/
|
|
17
|
-
declare function flatten<T, D extends number = 1>(value: T[] | object, depth?: D): Array<FlatArray<T[], D>> | [];
|
|
17
|
+
declare function flatten<T, D extends number = 1>(value: readonly T[] | object, depth?: D): Array<FlatArray<T[], D>> | [];
|
|
18
18
|
|
|
19
19
|
export { flatten };
|
|
@@ -14,6 +14,6 @@
|
|
|
14
14
|
* const arr = flatten([1, [2, 3], [4, [5, 6]]], 2);
|
|
15
15
|
* // Returns: [1, 2, 3, 4, 5, 6]
|
|
16
16
|
*/
|
|
17
|
-
declare function flatten<T, D extends number = 1>(value: T[] | object, depth?: D): Array<FlatArray<T[], D>> | [];
|
|
17
|
+
declare function flatten<T, D extends number = 1>(value: readonly T[] | object, depth?: D): Array<FlatArray<T[], D>> | [];
|
|
18
18
|
|
|
19
19
|
export { flatten };
|
|
@@ -14,6 +14,6 @@
|
|
|
14
14
|
* const arr = flatten([1, [2, 3], [4, [5, 6]]], 2);
|
|
15
15
|
* // Returns: [1, 2, 3, 4, 5, 6]
|
|
16
16
|
*/
|
|
17
|
-
declare function flattenDepth<T, D extends number = 1>(value: T[] | object, depth?: D): Array<FlatArray<T[], D>> | [];
|
|
17
|
+
declare function flattenDepth<T, D extends number = 1>(value: readonly T[] | object, depth?: D): Array<FlatArray<T[], D>> | [];
|
|
18
18
|
|
|
19
19
|
export { flattenDepth };
|
|
@@ -14,6 +14,6 @@
|
|
|
14
14
|
* const arr = flatten([1, [2, 3], [4, [5, 6]]], 2);
|
|
15
15
|
* // Returns: [1, 2, 3, 4, 5, 6]
|
|
16
16
|
*/
|
|
17
|
-
declare function flattenDepth<T, D extends number = 1>(value: T[] | object, depth?: D): Array<FlatArray<T[], D>> | [];
|
|
17
|
+
declare function flattenDepth<T, D extends number = 1>(value: readonly T[] | object, depth?: D): Array<FlatArray<T[], D>> | [];
|
|
18
18
|
|
|
19
19
|
export { flattenDepth };
|
|
@@ -16,6 +16,6 @@
|
|
|
16
16
|
* indexOf(array, 3); // => 2
|
|
17
17
|
* indexOf(array, NaN); // => 3
|
|
18
18
|
*/
|
|
19
|
-
declare function indexOf<T>(array: T[] | null | undefined, searchElement: T, fromIndex?: number): number;
|
|
19
|
+
declare function indexOf<T>(array: readonly T[] | null | undefined, searchElement: T, fromIndex?: number): number;
|
|
20
20
|
|
|
21
21
|
export { indexOf };
|
|
@@ -16,6 +16,6 @@
|
|
|
16
16
|
* indexOf(array, 3); // => 2
|
|
17
17
|
* indexOf(array, NaN); // => 3
|
|
18
18
|
*/
|
|
19
|
-
declare function indexOf<T>(array: T[] | null | undefined, searchElement: T, fromIndex?: number): number;
|
|
19
|
+
declare function indexOf<T>(array: readonly T[] | null | undefined, searchElement: T, fromIndex?: number): number;
|
|
20
20
|
|
|
21
21
|
export { indexOf };
|
|
@@ -29,6 +29,6 @@ type Criterion<T> = ((item: T) => unknown) | PropertyKey | PropertyKey[] | null
|
|
|
29
29
|
* // { user: 'fred', age: 40 },
|
|
30
30
|
* // ]
|
|
31
31
|
*/
|
|
32
|
-
declare function orderBy<T>(collection: T[] | object | number | null | undefined, criteria?: Criterion<T> | Array<Criterion<T>>, orders?: unknown | unknown[]): T[];
|
|
32
|
+
declare function orderBy<T>(collection: readonly T[] | object | number | null | undefined, criteria?: Criterion<T> | Array<Criterion<T>>, orders?: unknown | unknown[]): T[];
|
|
33
33
|
|
|
34
34
|
export { type Criterion, orderBy };
|
|
@@ -29,6 +29,6 @@ type Criterion<T> = ((item: T) => unknown) | PropertyKey | PropertyKey[] | null
|
|
|
29
29
|
* // { user: 'fred', age: 40 },
|
|
30
30
|
* // ]
|
|
31
31
|
*/
|
|
32
|
-
declare function orderBy<T>(collection: T[] | object | number | null | undefined, criteria?: Criterion<T> | Array<Criterion<T>>, orders?: unknown | unknown[]): T[];
|
|
32
|
+
declare function orderBy<T>(collection: readonly T[] | object | number | null | undefined, criteria?: Criterion<T> | Array<Criterion<T>>, orders?: unknown | unknown[]): T[];
|
|
33
33
|
|
|
34
34
|
export { type Criterion, orderBy };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { compareValues } from '../_internal/compareValues.mjs';
|
|
2
2
|
import { isKey } from '../_internal/isKey.mjs';
|
|
3
|
-
import { toPath } from '../
|
|
3
|
+
import { toPath } from '../util/toPath.mjs';
|
|
4
4
|
|
|
5
5
|
function orderBy(collection, criteria, orders) {
|
|
6
6
|
if (collection == null || typeof collection === 'number') {
|
|
@@ -34,6 +34,6 @@
|
|
|
34
34
|
* const emptyObjSize = size(emptyObj);
|
|
35
35
|
* // emptyObjSize will be 0
|
|
36
36
|
*/
|
|
37
|
-
declare function size<T>(target: T[] | object | string | Map<unknown, T> | Set<T> | null | undefined): number;
|
|
37
|
+
declare function size<T>(target: readonly T[] | object | string | Map<unknown, T> | Set<T> | null | undefined): number;
|
|
38
38
|
|
|
39
39
|
export { size };
|
|
@@ -34,6 +34,6 @@
|
|
|
34
34
|
* const emptyObjSize = size(emptyObj);
|
|
35
35
|
* // emptyObjSize will be 0
|
|
36
36
|
*/
|
|
37
|
-
declare function size<T>(target: T[] | object | string | Map<unknown, T> | Set<T> | null | undefined): number;
|
|
37
|
+
declare function size<T>(target: readonly T[] | object | string | Map<unknown, T> | Set<T> | null | undefined): number;
|
|
38
38
|
|
|
39
39
|
export { size };
|
|
@@ -29,6 +29,6 @@ import { Criterion } from './orderBy.mjs';
|
|
|
29
29
|
* // { user: 'fred', age: 48 },
|
|
30
30
|
* // ]
|
|
31
31
|
*/
|
|
32
|
-
declare function sortBy<T>(collection: T[] | object | number | null | undefined, criteria?: Criterion<T> | Array<Criterion<T>>): T[];
|
|
32
|
+
declare function sortBy<T>(collection: readonly T[] | object | number | null | undefined, criteria?: Criterion<T> | Array<Criterion<T>>): T[];
|
|
33
33
|
|
|
34
34
|
export { sortBy };
|
|
@@ -29,6 +29,6 @@ import { Criterion } from './orderBy.js';
|
|
|
29
29
|
* // { user: 'fred', age: 48 },
|
|
30
30
|
* // ]
|
|
31
31
|
*/
|
|
32
|
-
declare function sortBy<T>(collection: T[] | object | number | null | undefined, criteria?: Criterion<T> | Array<Criterion<T>>): T[];
|
|
32
|
+
declare function sortBy<T>(collection: readonly T[] | object | number | null | undefined, criteria?: Criterion<T> | Array<Criterion<T>>): T[];
|
|
33
33
|
|
|
34
34
|
export { sortBy };
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
* const result = zipObjectDeep(paths, values);
|
|
32
32
|
* // result will be { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }
|
|
33
33
|
*/
|
|
34
|
-
declare function zipObjectDeep<P extends PropertyKey, V>(keys: P[] | P[][], values: V[]): {
|
|
34
|
+
declare function zipObjectDeep<P extends PropertyKey, V>(keys: readonly P[] | readonly P[][], values: readonly V[]): {
|
|
35
35
|
[K in P]: V;
|
|
36
36
|
};
|
|
37
37
|
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
* const result = zipObjectDeep(paths, values);
|
|
32
32
|
* // result will be { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }
|
|
33
33
|
*/
|
|
34
|
-
declare function zipObjectDeep<P extends PropertyKey, V>(keys: P[] | P[][], values: V[]): {
|
|
34
|
+
declare function zipObjectDeep<P extends PropertyKey, V>(keys: readonly P[] | readonly P[][], values: readonly V[]): {
|
|
35
35
|
[K in P]: V;
|
|
36
36
|
};
|
|
37
37
|
|
package/dist/compat/index.d.mts
CHANGED
|
@@ -60,25 +60,24 @@ export { MemoizeCache, memoize } from '../function/memoize.mjs';
|
|
|
60
60
|
export { unary } from '../function/unary.mjs';
|
|
61
61
|
export { partial } from '../function/partial.mjs';
|
|
62
62
|
export { partialRight } from '../function/partialRight.mjs';
|
|
63
|
+
export { curry } from '../function/curry.mjs';
|
|
63
64
|
export { clamp } from '../math/clamp.mjs';
|
|
64
65
|
export { inRange } from '../math/inRange.mjs';
|
|
65
66
|
export { mean } from '../math/mean.mjs';
|
|
66
67
|
export { meanBy } from '../math/meanBy.mjs';
|
|
67
68
|
export { random } from '../math/random.mjs';
|
|
68
69
|
export { randomInt } from '../math/randomInt.mjs';
|
|
69
|
-
export { round } from '../math/round.mjs';
|
|
70
70
|
export { sum } from '../math/sum.mjs';
|
|
71
71
|
export { sumBy } from '../math/sumBy.mjs';
|
|
72
72
|
export { range } from '../math/range.mjs';
|
|
73
|
-
export { omit } from '../object/omit.mjs';
|
|
74
73
|
export { omitBy } from '../object/omitBy.mjs';
|
|
75
|
-
export { pick } from '../object/pick.mjs';
|
|
76
74
|
export { pickBy } from '../object/pickBy.mjs';
|
|
77
75
|
export { invert } from '../object/invert.mjs';
|
|
78
76
|
export { clone } from '../object/clone.mjs';
|
|
79
77
|
export { flattenObject } from '../object/flattenObject.mjs';
|
|
80
78
|
export { cloneDeep } from '../object/cloneDeep.mjs';
|
|
81
79
|
export { toMerged } from '../object/toMerged.mjs';
|
|
80
|
+
export { isDate } from '../predicate/isDate.mjs';
|
|
82
81
|
export { isEqual } from '../predicate/isEqual.mjs';
|
|
83
82
|
export { isNil } from '../predicate/isNil.mjs';
|
|
84
83
|
export { isNotNil } from '../predicate/isNotNil.mjs';
|
|
@@ -90,10 +89,7 @@ export { isPrimitive } from '../predicate/isPrimitive.mjs';
|
|
|
90
89
|
export { delay } from '../promise/delay.mjs';
|
|
91
90
|
export { withTimeout } from '../promise/withTimeout.mjs';
|
|
92
91
|
export { timeout } from '../promise/timeout.mjs';
|
|
93
|
-
export {
|
|
94
|
-
export { kebabCase } from '../string/kebabCase.mjs';
|
|
95
|
-
export { lowerCase } from '../string/lowerCase.mjs';
|
|
96
|
-
export { startCase } from '../string/startCase.mjs';
|
|
92
|
+
export { upperCase } from '../string/upperCase.mjs';
|
|
97
93
|
export { capitalize } from '../string/capitalize.mjs';
|
|
98
94
|
export { pascalCase } from '../string/pascalCase.mjs';
|
|
99
95
|
export { upperFirst } from '../string/upperFirst.mjs';
|
|
@@ -130,6 +126,8 @@ export { attempt } from './function/attempt.mjs';
|
|
|
130
126
|
export { rearg } from './function/rearg.mjs';
|
|
131
127
|
export { get } from './object/get.mjs';
|
|
132
128
|
export { set } from './object/set.mjs';
|
|
129
|
+
export { pick } from './object/pick.mjs';
|
|
130
|
+
export { omit } from './object/omit.mjs';
|
|
133
131
|
export { has } from './object/has.mjs';
|
|
134
132
|
export { property } from './object/property.mjs';
|
|
135
133
|
export { mapKeys } from './object/mapKeys.mjs';
|
|
@@ -137,6 +135,7 @@ export { mapValues } from './object/mapValues.mjs';
|
|
|
137
135
|
export { merge } from './object/merge.mjs';
|
|
138
136
|
export { mergeWith } from './object/mergeWith.mjs';
|
|
139
137
|
export { fromPairs } from './object/fromPairs.mjs';
|
|
138
|
+
export { unset } from './object/unset.mjs';
|
|
140
139
|
export { isPlainObject } from './predicate/isPlainObject.mjs';
|
|
141
140
|
export { isArray } from './predicate/isArray.mjs';
|
|
142
141
|
export { isArguments } from './predicate/isArguments.mjs';
|
|
@@ -155,12 +154,26 @@ export { isWeakMap } from './predicate/isWeakMap.mjs';
|
|
|
155
154
|
export { isWeakSet } from './predicate/isWeakSet.mjs';
|
|
156
155
|
export { conforms } from './predicate/conforms.mjs';
|
|
157
156
|
export { conformsTo } from './predicate/conformsTo.mjs';
|
|
157
|
+
export { isInteger } from './predicate/isInteger.mjs';
|
|
158
|
+
export { isSafeInteger } from './predicate/isSafeInteger.mjs';
|
|
158
159
|
export { camelCase } from './string/camelCase.mjs';
|
|
160
|
+
export { kebabCase } from './string/kebabCase.mjs';
|
|
161
|
+
export { snakeCase } from './string/snakeCase.mjs';
|
|
162
|
+
export { startCase } from './string/startCase.mjs';
|
|
163
|
+
export { lowerCase } from './string/lowerCase.mjs';
|
|
159
164
|
export { startsWith } from './string/startsWith.mjs';
|
|
160
165
|
export { endsWith } from './string/endsWith.mjs';
|
|
161
166
|
export { padStart } from './string/padStart.mjs';
|
|
162
167
|
export { padEnd } from './string/padEnd.mjs';
|
|
163
168
|
export { repeat } from './string/repeat.mjs';
|
|
169
|
+
export { trim } from './string/trim.mjs';
|
|
170
|
+
export { trimStart } from './string/trimStart.mjs';
|
|
171
|
+
export { trimEnd } from './string/trimEnd.mjs';
|
|
164
172
|
export { max } from './math/max.mjs';
|
|
165
173
|
export { min } from './math/min.mjs';
|
|
174
|
+
export { ceil } from './math/ceil.mjs';
|
|
175
|
+
export { floor } from './math/floor.mjs';
|
|
176
|
+
export { round } from './math/round.mjs';
|
|
166
177
|
export { parseInt } from './math/parseInt.mjs';
|
|
178
|
+
export { toPath } from './util/toPath.mjs';
|
|
179
|
+
export { toString } from './util/toString.mjs';
|
package/dist/compat/index.d.ts
CHANGED
|
@@ -60,25 +60,24 @@ export { MemoizeCache, memoize } from '../function/memoize.js';
|
|
|
60
60
|
export { unary } from '../function/unary.js';
|
|
61
61
|
export { partial } from '../function/partial.js';
|
|
62
62
|
export { partialRight } from '../function/partialRight.js';
|
|
63
|
+
export { curry } from '../function/curry.js';
|
|
63
64
|
export { clamp } from '../math/clamp.js';
|
|
64
65
|
export { inRange } from '../math/inRange.js';
|
|
65
66
|
export { mean } from '../math/mean.js';
|
|
66
67
|
export { meanBy } from '../math/meanBy.js';
|
|
67
68
|
export { random } from '../math/random.js';
|
|
68
69
|
export { randomInt } from '../math/randomInt.js';
|
|
69
|
-
export { round } from '../math/round.js';
|
|
70
70
|
export { sum } from '../math/sum.js';
|
|
71
71
|
export { sumBy } from '../math/sumBy.js';
|
|
72
72
|
export { range } from '../math/range.js';
|
|
73
|
-
export { omit } from '../object/omit.js';
|
|
74
73
|
export { omitBy } from '../object/omitBy.js';
|
|
75
|
-
export { pick } from '../object/pick.js';
|
|
76
74
|
export { pickBy } from '../object/pickBy.js';
|
|
77
75
|
export { invert } from '../object/invert.js';
|
|
78
76
|
export { clone } from '../object/clone.js';
|
|
79
77
|
export { flattenObject } from '../object/flattenObject.js';
|
|
80
78
|
export { cloneDeep } from '../object/cloneDeep.js';
|
|
81
79
|
export { toMerged } from '../object/toMerged.js';
|
|
80
|
+
export { isDate } from '../predicate/isDate.js';
|
|
82
81
|
export { isEqual } from '../predicate/isEqual.js';
|
|
83
82
|
export { isNil } from '../predicate/isNil.js';
|
|
84
83
|
export { isNotNil } from '../predicate/isNotNil.js';
|
|
@@ -90,10 +89,7 @@ export { isPrimitive } from '../predicate/isPrimitive.js';
|
|
|
90
89
|
export { delay } from '../promise/delay.js';
|
|
91
90
|
export { withTimeout } from '../promise/withTimeout.js';
|
|
92
91
|
export { timeout } from '../promise/timeout.js';
|
|
93
|
-
export {
|
|
94
|
-
export { kebabCase } from '../string/kebabCase.js';
|
|
95
|
-
export { lowerCase } from '../string/lowerCase.js';
|
|
96
|
-
export { startCase } from '../string/startCase.js';
|
|
92
|
+
export { upperCase } from '../string/upperCase.js';
|
|
97
93
|
export { capitalize } from '../string/capitalize.js';
|
|
98
94
|
export { pascalCase } from '../string/pascalCase.js';
|
|
99
95
|
export { upperFirst } from '../string/upperFirst.js';
|
|
@@ -130,6 +126,8 @@ export { attempt } from './function/attempt.js';
|
|
|
130
126
|
export { rearg } from './function/rearg.js';
|
|
131
127
|
export { get } from './object/get.js';
|
|
132
128
|
export { set } from './object/set.js';
|
|
129
|
+
export { pick } from './object/pick.js';
|
|
130
|
+
export { omit } from './object/omit.js';
|
|
133
131
|
export { has } from './object/has.js';
|
|
134
132
|
export { property } from './object/property.js';
|
|
135
133
|
export { mapKeys } from './object/mapKeys.js';
|
|
@@ -137,6 +135,7 @@ export { mapValues } from './object/mapValues.js';
|
|
|
137
135
|
export { merge } from './object/merge.js';
|
|
138
136
|
export { mergeWith } from './object/mergeWith.js';
|
|
139
137
|
export { fromPairs } from './object/fromPairs.js';
|
|
138
|
+
export { unset } from './object/unset.js';
|
|
140
139
|
export { isPlainObject } from './predicate/isPlainObject.js';
|
|
141
140
|
export { isArray } from './predicate/isArray.js';
|
|
142
141
|
export { isArguments } from './predicate/isArguments.js';
|
|
@@ -155,12 +154,26 @@ export { isWeakMap } from './predicate/isWeakMap.js';
|
|
|
155
154
|
export { isWeakSet } from './predicate/isWeakSet.js';
|
|
156
155
|
export { conforms } from './predicate/conforms.js';
|
|
157
156
|
export { conformsTo } from './predicate/conformsTo.js';
|
|
157
|
+
export { isInteger } from './predicate/isInteger.js';
|
|
158
|
+
export { isSafeInteger } from './predicate/isSafeInteger.js';
|
|
158
159
|
export { camelCase } from './string/camelCase.js';
|
|
160
|
+
export { kebabCase } from './string/kebabCase.js';
|
|
161
|
+
export { snakeCase } from './string/snakeCase.js';
|
|
162
|
+
export { startCase } from './string/startCase.js';
|
|
163
|
+
export { lowerCase } from './string/lowerCase.js';
|
|
159
164
|
export { startsWith } from './string/startsWith.js';
|
|
160
165
|
export { endsWith } from './string/endsWith.js';
|
|
161
166
|
export { padStart } from './string/padStart.js';
|
|
162
167
|
export { padEnd } from './string/padEnd.js';
|
|
163
168
|
export { repeat } from './string/repeat.js';
|
|
169
|
+
export { trim } from './string/trim.js';
|
|
170
|
+
export { trimStart } from './string/trimStart.js';
|
|
171
|
+
export { trimEnd } from './string/trimEnd.js';
|
|
164
172
|
export { max } from './math/max.js';
|
|
165
173
|
export { min } from './math/min.js';
|
|
174
|
+
export { ceil } from './math/ceil.js';
|
|
175
|
+
export { floor } from './math/floor.js';
|
|
176
|
+
export { round } from './math/round.js';
|
|
166
177
|
export { parseInt } from './math/parseInt.js';
|
|
178
|
+
export { toPath } from './util/toPath.js';
|
|
179
|
+
export { toString } from './util/toString.js';
|