es-toolkit 1.23.0-dev.744 → 1.23.0-dev.746
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/README.md +1 -1
- package/dist/_chunk/{zipWith-EOU_KZ.js → zipWith-CV0XAX.js} +1 -1
- package/dist/array/dropRightWhile.d.mts +2 -2
- package/dist/array/dropRightWhile.d.ts +2 -2
- package/dist/array/dropRightWhile.mjs +1 -1
- package/dist/array/dropWhile.d.mts +1 -1
- package/dist/array/dropWhile.d.ts +1 -1
- package/dist/array/index.js +1 -1
- package/dist/browser.global.js +1 -1
- package/dist/browser.global.js.map +1 -1
- package/dist/compat/array/dropRightWhile.d.mts +60 -0
- package/dist/compat/array/dropRightWhile.d.ts +60 -0
- package/dist/compat/array/dropRightWhile.mjs +27 -0
- package/dist/compat/index.d.mts +74 -74
- package/dist/compat/index.d.ts +74 -74
- package/dist/compat/index.js +580 -559
- package/dist/compat/index.mjs +73 -73
- package/dist/compat/string/upperCase.mjs +1 -1
- package/dist/index.d.mts +32 -32
- package/dist/index.d.ts +32 -32
- package/dist/index.js +41 -41
- package/dist/index.mjs +32 -32
- package/dist/math/index.d.mts +2 -2
- package/dist/math/index.d.ts +2 -2
- package/dist/math/index.js +9 -9
- package/dist/math/index.mjs +2 -2
- package/dist/object/index.d.mts +7 -7
- package/dist/object/index.d.ts +7 -7
- package/dist/object/index.js +32 -32
- package/dist/object/index.mjs +7 -7
- package/dist/predicate/index.d.mts +10 -10
- package/dist/predicate/index.d.ts +10 -10
- package/dist/predicate/index.js +7 -7
- package/dist/predicate/index.mjs +10 -10
- package/dist/promise/index.d.mts +1 -1
- package/dist/promise/index.d.ts +1 -1
- package/dist/promise/index.mjs +1 -1
- package/dist/string/index.d.mts +12 -12
- package/dist/string/index.d.ts +12 -12
- package/dist/string/index.js +20 -20
- package/dist/string/index.mjs +12 -12
- package/package.json +5 -1
- package/dist/_chunk/{isWeakSet-CjpFwn.js → isWeakSet-Bd6nry.js} +45 -45
- package/dist/_chunk/{rangeRight-CtcxMd.js → sumBy-BkErWJ.js} +5 -5
- package/dist/_chunk/{isObjectLike-aywuSF.js → toMerged-BBJZIl.js} +86 -86
- package/dist/_chunk/{pad-BWiShN.js → upperFirst-BUECmK.js} +84 -84
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Drops elements from the end of an array while the predicate function returns truthy.
|
|
3
|
+
*
|
|
4
|
+
* @template T - The type of elements in the array.
|
|
5
|
+
* @param {T[]} arr - The array from which to drop elements.
|
|
6
|
+
* @param {(item: T, index: number, arr: T[]) => unknown} canContinueDropping - A predicate function that determines
|
|
7
|
+
* whether to continue dropping elements. The function is called with each element, index, and array, and dropping
|
|
8
|
+
* continues as long as it returns true.
|
|
9
|
+
* @returns {T[]} A new array with the elements remaining after the predicate returns false.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* const array = [5, 4, 3, 2, 1];
|
|
13
|
+
* const result = dropRightWhile(array, x => x < 3);
|
|
14
|
+
* result will be [5, 4, 3] since elements less than 3 are dropped.
|
|
15
|
+
*/
|
|
16
|
+
declare function dropRightWhile<T>(arr: readonly T[], canContinueDropping: (item: T, index: number, arr: readonly T[]) => unknown): T[];
|
|
17
|
+
/**
|
|
18
|
+
* Drops elements from the end of an array while the specified object properties match.
|
|
19
|
+
*
|
|
20
|
+
* @template T - The type of elements in the array.
|
|
21
|
+
* @param {T[]} arr - The array from which to drop elements.
|
|
22
|
+
* @param {Partial<T>} objectToDrop - An object specifying the properties to match for dropping elements.
|
|
23
|
+
* @returns {T[]} A new array with the elements remaining after the predicate returns false.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* const array = [{ a: 1 }, { a: 2 }, { a: 3 }];
|
|
27
|
+
* const result = dropRightWhile(array, { a: 3 });
|
|
28
|
+
* result will be [{ a: 1 }, { a: 2 }] since the last object matches the properties of the provided object.
|
|
29
|
+
*/
|
|
30
|
+
declare function dropRightWhile<T>(arr: readonly T[], objectToDrop: Partial<T>): T[];
|
|
31
|
+
/**
|
|
32
|
+
* Drops elements from the end of an array while the specified property matches a given value.
|
|
33
|
+
*
|
|
34
|
+
* @template T - The type of elements in the array.
|
|
35
|
+
* @param {T[]} arr - The array from which to drop elements.
|
|
36
|
+
* @param {[keyof T, unknown]} propertyToDrop - A tuple containing the property key and the value to match for dropping elements.
|
|
37
|
+
* @returns {T[]} A new array with the elements remaining after the predicate returns false.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* const array = [{ id: 1 }, { id: 2 }, { id: 3 }];
|
|
41
|
+
* const result = dropRightWhile(array, ['id', 3]);
|
|
42
|
+
* result will be [{ id: 1 }, { id: 2 }] since the last object has the id property matching the value 3.
|
|
43
|
+
*/
|
|
44
|
+
declare function dropRightWhile<T>(arr: readonly T[], propertyToDrop: [keyof T, unknown]): T[];
|
|
45
|
+
/**
|
|
46
|
+
* Drops elements from the end of an array while the specified property name matches.
|
|
47
|
+
*
|
|
48
|
+
* @template T - The type of elements in the array.
|
|
49
|
+
* @param {T[]} arr - The array from which to drop elements.
|
|
50
|
+
* @param {string} propertyToDrop - The name of the property to match for dropping elements.
|
|
51
|
+
* @returns {T[]} A new array with the elements remaining after the predicate returns false.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* const array = [{ isActive: false }, { isActive: true }, { isActive: true }];
|
|
55
|
+
* const result = dropRightWhile(array, 'isActive');
|
|
56
|
+
* result will be [{ isActive: false }] since it drops elements until it finds one with a falsy isActive property.
|
|
57
|
+
*/
|
|
58
|
+
declare function dropRightWhile<T>(arr: readonly T[], propertyToDrop: string): T[];
|
|
59
|
+
|
|
60
|
+
export { dropRightWhile };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Drops elements from the end of an array while the predicate function returns truthy.
|
|
3
|
+
*
|
|
4
|
+
* @template T - The type of elements in the array.
|
|
5
|
+
* @param {T[]} arr - The array from which to drop elements.
|
|
6
|
+
* @param {(item: T, index: number, arr: T[]) => unknown} canContinueDropping - A predicate function that determines
|
|
7
|
+
* whether to continue dropping elements. The function is called with each element, index, and array, and dropping
|
|
8
|
+
* continues as long as it returns true.
|
|
9
|
+
* @returns {T[]} A new array with the elements remaining after the predicate returns false.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* const array = [5, 4, 3, 2, 1];
|
|
13
|
+
* const result = dropRightWhile(array, x => x < 3);
|
|
14
|
+
* result will be [5, 4, 3] since elements less than 3 are dropped.
|
|
15
|
+
*/
|
|
16
|
+
declare function dropRightWhile<T>(arr: readonly T[], canContinueDropping: (item: T, index: number, arr: readonly T[]) => unknown): T[];
|
|
17
|
+
/**
|
|
18
|
+
* Drops elements from the end of an array while the specified object properties match.
|
|
19
|
+
*
|
|
20
|
+
* @template T - The type of elements in the array.
|
|
21
|
+
* @param {T[]} arr - The array from which to drop elements.
|
|
22
|
+
* @param {Partial<T>} objectToDrop - An object specifying the properties to match for dropping elements.
|
|
23
|
+
* @returns {T[]} A new array with the elements remaining after the predicate returns false.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* const array = [{ a: 1 }, { a: 2 }, { a: 3 }];
|
|
27
|
+
* const result = dropRightWhile(array, { a: 3 });
|
|
28
|
+
* result will be [{ a: 1 }, { a: 2 }] since the last object matches the properties of the provided object.
|
|
29
|
+
*/
|
|
30
|
+
declare function dropRightWhile<T>(arr: readonly T[], objectToDrop: Partial<T>): T[];
|
|
31
|
+
/**
|
|
32
|
+
* Drops elements from the end of an array while the specified property matches a given value.
|
|
33
|
+
*
|
|
34
|
+
* @template T - The type of elements in the array.
|
|
35
|
+
* @param {T[]} arr - The array from which to drop elements.
|
|
36
|
+
* @param {[keyof T, unknown]} propertyToDrop - A tuple containing the property key and the value to match for dropping elements.
|
|
37
|
+
* @returns {T[]} A new array with the elements remaining after the predicate returns false.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* const array = [{ id: 1 }, { id: 2 }, { id: 3 }];
|
|
41
|
+
* const result = dropRightWhile(array, ['id', 3]);
|
|
42
|
+
* result will be [{ id: 1 }, { id: 2 }] since the last object has the id property matching the value 3.
|
|
43
|
+
*/
|
|
44
|
+
declare function dropRightWhile<T>(arr: readonly T[], propertyToDrop: [keyof T, unknown]): T[];
|
|
45
|
+
/**
|
|
46
|
+
* Drops elements from the end of an array while the specified property name matches.
|
|
47
|
+
*
|
|
48
|
+
* @template T - The type of elements in the array.
|
|
49
|
+
* @param {T[]} arr - The array from which to drop elements.
|
|
50
|
+
* @param {string} propertyToDrop - The name of the property to match for dropping elements.
|
|
51
|
+
* @returns {T[]} A new array with the elements remaining after the predicate returns false.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* const array = [{ isActive: false }, { isActive: true }, { isActive: true }];
|
|
55
|
+
* const result = dropRightWhile(array, 'isActive');
|
|
56
|
+
* result will be [{ isActive: false }] since it drops elements until it finds one with a falsy isActive property.
|
|
57
|
+
*/
|
|
58
|
+
declare function dropRightWhile<T>(arr: readonly T[], propertyToDrop: string): T[];
|
|
59
|
+
|
|
60
|
+
export { dropRightWhile };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { dropRightWhile as dropRightWhile$1 } from '../../array/dropRightWhile.mjs';
|
|
2
|
+
import { property } from '../object/property.mjs';
|
|
3
|
+
import { matches } from '../predicate/matches.mjs';
|
|
4
|
+
import { matchesProperty } from '../predicate/matchesProperty.mjs';
|
|
5
|
+
|
|
6
|
+
function dropRightWhile(arr, predicate) {
|
|
7
|
+
switch (typeof predicate) {
|
|
8
|
+
case 'function': {
|
|
9
|
+
return dropRightWhile$1(arr, (item, index, arr) => Boolean(predicate(item, index, arr)));
|
|
10
|
+
}
|
|
11
|
+
case 'object': {
|
|
12
|
+
if (Array.isArray(predicate) && predicate.length === 2) {
|
|
13
|
+
const key = predicate[0];
|
|
14
|
+
const value = predicate[1];
|
|
15
|
+
return dropRightWhile$1(arr, matchesProperty(key, value));
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
return dropRightWhile$1(arr, matches(predicate));
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
case 'string': {
|
|
22
|
+
return dropRightWhile$1(arr, property(predicate));
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { dropRightWhile };
|
package/dist/compat/index.d.mts
CHANGED
|
@@ -4,7 +4,6 @@ export { countBy } from '../array/countBy.mjs';
|
|
|
4
4
|
export { differenceBy } from '../array/differenceBy.mjs';
|
|
5
5
|
export { differenceWith } from '../array/differenceWith.mjs';
|
|
6
6
|
export { dropRight } from '../array/dropRight.mjs';
|
|
7
|
-
export { dropRightWhile } from '../array/dropRightWhile.mjs';
|
|
8
7
|
export { flatMap } from '../array/flatMap.mjs';
|
|
9
8
|
export { flatMapDeep } from '../array/flatMapDeep.mjs';
|
|
10
9
|
export { forEachRight } from '../array/forEachRight.mjs';
|
|
@@ -57,48 +56,50 @@ export { partialRight } from '../function/partialRight.mjs';
|
|
|
57
56
|
export { mean } from '../math/mean.mjs';
|
|
58
57
|
export { meanBy } from '../math/meanBy.mjs';
|
|
59
58
|
export { randomInt } from '../math/randomInt.mjs';
|
|
60
|
-
export { sum } from '../math/sum.mjs';
|
|
61
|
-
export { sumBy } from '../math/sumBy.mjs';
|
|
62
59
|
export { range } from '../math/range.mjs';
|
|
63
60
|
export { rangeRight } from '../math/rangeRight.mjs';
|
|
64
|
-
export {
|
|
65
|
-
export {
|
|
66
|
-
export { invert } from '../object/invert.mjs';
|
|
61
|
+
export { sum } from '../math/sum.mjs';
|
|
62
|
+
export { sumBy } from '../math/sumBy.mjs';
|
|
67
63
|
export { clone } from '../object/clone.mjs';
|
|
68
64
|
export { flattenObject } from '../object/flattenObject.mjs';
|
|
65
|
+
export { invert } from '../object/invert.mjs';
|
|
66
|
+
export { omitBy } from '../object/omitBy.mjs';
|
|
67
|
+
export { pickBy } from '../object/pickBy.mjs';
|
|
69
68
|
export { toMerged } from '../object/toMerged.mjs';
|
|
70
69
|
export { isBlob } from '../predicate/isBlob.mjs';
|
|
71
70
|
export { isDate } from '../predicate/isDate.mjs';
|
|
72
71
|
export { isEqual } from '../predicate/isEqual.mjs';
|
|
73
|
-
export { isNotNil } from '../predicate/isNotNil.mjs';
|
|
74
|
-
export { isNull } from '../predicate/isNull.mjs';
|
|
75
|
-
export { isUndefined } from '../predicate/isUndefined.mjs';
|
|
76
|
-
export { isLength } from '../predicate/isLength.mjs';
|
|
77
72
|
export { isFunction } from '../predicate/isFunction.mjs';
|
|
78
|
-
export {
|
|
73
|
+
export { isJSONArray } from '../predicate/isJSONArray.mjs';
|
|
79
74
|
export { isJSONObject } from '../predicate/isJSONObject.mjs';
|
|
80
75
|
export { isJSONValue } from '../predicate/isJSONValue.mjs';
|
|
81
|
-
export {
|
|
76
|
+
export { isLength } from '../predicate/isLength.mjs';
|
|
77
|
+
export { isNotNil } from '../predicate/isNotNil.mjs';
|
|
78
|
+
export { isNull } from '../predicate/isNull.mjs';
|
|
79
|
+
export { isPrimitive } from '../predicate/isPrimitive.mjs';
|
|
80
|
+
export { isUndefined } from '../predicate/isUndefined.mjs';
|
|
82
81
|
export { delay } from '../promise/delay.mjs';
|
|
83
|
-
export { withTimeout } from '../promise/withTimeout.mjs';
|
|
84
82
|
export { timeout } from '../promise/timeout.mjs';
|
|
83
|
+
export { withTimeout } from '../promise/withTimeout.mjs';
|
|
85
84
|
export { capitalize } from '../string/capitalize.mjs';
|
|
86
|
-
export { pascalCase } from '../string/pascalCase.mjs';
|
|
87
85
|
export { constantCase } from '../string/constantCase.mjs';
|
|
88
|
-
export { upperFirst } from '../string/upperFirst.mjs';
|
|
89
|
-
export { lowerFirst } from '../string/lowerFirst.mjs';
|
|
90
86
|
export { deburr } from '../string/deburr.mjs';
|
|
91
87
|
export { escape } from '../string/escape.mjs';
|
|
92
88
|
export { escapeRegExp } from '../string/escapeRegExp.mjs';
|
|
89
|
+
export { lowerFirst } from '../string/lowerFirst.mjs';
|
|
90
|
+
export { pascalCase } from '../string/pascalCase.mjs';
|
|
93
91
|
export { unescape } from '../string/unescape.mjs';
|
|
92
|
+
export { upperFirst } from '../string/upperFirst.mjs';
|
|
94
93
|
export { castArray } from './array/castArray.mjs';
|
|
95
94
|
export { chunk } from './array/chunk.mjs';
|
|
96
95
|
export { concat } from './array/concat.mjs';
|
|
97
96
|
export { difference } from './array/difference.mjs';
|
|
98
97
|
export { drop } from './array/drop.mjs';
|
|
99
98
|
export { dropWhile } from './array/dropWhile.mjs';
|
|
99
|
+
export { dropRightWhile } from './array/dropRightWhile.mjs';
|
|
100
100
|
export { every } from './array/every.mjs';
|
|
101
101
|
export { fill } from './array/fill.mjs';
|
|
102
|
+
export { filter } from './array/filter.mjs';
|
|
102
103
|
export { find } from './array/find.mjs';
|
|
103
104
|
export { findIndex } from './array/findIndex.mjs';
|
|
104
105
|
export { findLastIndex } from './array/findLastIndex.mjs';
|
|
@@ -109,103 +110,102 @@ export { includes } from './array/includes.mjs';
|
|
|
109
110
|
export { indexOf } from './array/indexOf.mjs';
|
|
110
111
|
export { join } from './array/join.mjs';
|
|
111
112
|
export { orderBy } from './array/orderBy.mjs';
|
|
112
|
-
export { sortBy } from './array/sortBy.mjs';
|
|
113
113
|
export { size } from './array/size.mjs';
|
|
114
114
|
export { some } from './array/some.mjs';
|
|
115
|
+
export { sortBy } from './array/sortBy.mjs';
|
|
115
116
|
export { take } from './array/take.mjs';
|
|
116
117
|
export { zipObjectDeep } from './array/zipObjectDeep.mjs';
|
|
117
|
-
export { filter } from './array/filter.mjs';
|
|
118
118
|
export { ary } from './function/ary.mjs';
|
|
119
|
-
export {
|
|
119
|
+
export { attempt } from './function/attempt.mjs';
|
|
120
120
|
export { before } from './function/before.mjs';
|
|
121
|
+
export { bind } from './function/bind.mjs';
|
|
121
122
|
export { bindKey } from './function/bindKey.mjs';
|
|
122
|
-
export { defer } from './function/defer.mjs';
|
|
123
|
-
export { rest } from './function/rest.mjs';
|
|
124
|
-
export { spread } from './function/spread.mjs';
|
|
125
|
-
export { attempt } from './function/attempt.mjs';
|
|
126
|
-
export { rearg } from './function/rearg.mjs';
|
|
127
123
|
export { curry } from './function/curry.mjs';
|
|
128
124
|
export { curryRight } from './function/curryRight.mjs';
|
|
129
125
|
export { debounce } from './function/debounce.mjs';
|
|
130
|
-
export {
|
|
126
|
+
export { defer } from './function/defer.mjs';
|
|
131
127
|
export { flip } from './function/flip.mjs';
|
|
132
128
|
export { flow } from './function/flow.mjs';
|
|
133
129
|
export { flowRight } from './function/flowRight.mjs';
|
|
130
|
+
export { rearg } from './function/rearg.mjs';
|
|
131
|
+
export { rest } from './function/rest.mjs';
|
|
132
|
+
export { spread } from './function/spread.mjs';
|
|
133
|
+
export { throttle } from './function/throttle.mjs';
|
|
134
|
+
export { ceil } from './math/ceil.mjs';
|
|
135
|
+
export { clamp } from './math/clamp.mjs';
|
|
136
|
+
export { floor } from './math/floor.mjs';
|
|
137
|
+
export { inRange } from './math/inRange.mjs';
|
|
138
|
+
export { max } from './math/max.mjs';
|
|
139
|
+
export { min } from './math/min.mjs';
|
|
140
|
+
export { parseInt } from './math/parseInt.mjs';
|
|
141
|
+
export { random } from './math/random.mjs';
|
|
142
|
+
export { round } from './math/round.mjs';
|
|
143
|
+
export { cloneDeep } from './object/cloneDeep.mjs';
|
|
144
|
+
export { defaults } from './object/defaults.mjs';
|
|
145
|
+
export { fromPairs } from './object/fromPairs.mjs';
|
|
134
146
|
export { get } from './object/get.mjs';
|
|
135
|
-
export { set } from './object/set.mjs';
|
|
136
|
-
export { pick } from './object/pick.mjs';
|
|
137
|
-
export { omit } from './object/omit.mjs';
|
|
138
147
|
export { has } from './object/has.mjs';
|
|
139
|
-
export {
|
|
148
|
+
export { invertBy } from './object/invertBy.mjs';
|
|
140
149
|
export { mapKeys } from './object/mapKeys.mjs';
|
|
141
150
|
export { mapValues } from './object/mapValues.mjs';
|
|
142
151
|
export { merge } from './object/merge.mjs';
|
|
143
152
|
export { mergeWith } from './object/mergeWith.mjs';
|
|
144
|
-
export {
|
|
145
|
-
export {
|
|
146
|
-
export {
|
|
147
|
-
export {
|
|
148
|
-
export { defaults } from './object/defaults.mjs';
|
|
153
|
+
export { omit } from './object/omit.mjs';
|
|
154
|
+
export { pick } from './object/pick.mjs';
|
|
155
|
+
export { property } from './object/property.mjs';
|
|
156
|
+
export { set } from './object/set.mjs';
|
|
149
157
|
export { toDefaulted } from './object/toDefaulted.mjs';
|
|
150
|
-
export {
|
|
151
|
-
export {
|
|
158
|
+
export { unset } from './object/unset.mjs';
|
|
159
|
+
export { conforms } from './predicate/conforms.mjs';
|
|
160
|
+
export { conformsTo } from './predicate/conformsTo.mjs';
|
|
152
161
|
export { isArguments } from './predicate/isArguments.mjs';
|
|
162
|
+
export { isArray } from './predicate/isArray.mjs';
|
|
153
163
|
export { isArrayBuffer } from './predicate/isArrayBuffer.mjs';
|
|
154
164
|
export { isArrayLike } from './predicate/isArrayLike.mjs';
|
|
155
|
-
export {
|
|
156
|
-
export { isObject } from './predicate/isObject.mjs';
|
|
157
|
-
export { isObjectLike } from './predicate/isObjectLike.mjs';
|
|
165
|
+
export { isArrayLikeObject } from './predicate/isArrayLikeObject.mjs';
|
|
158
166
|
export { isBoolean } from './predicate/isBoolean.mjs';
|
|
167
|
+
export { isEqualWith } from './predicate/isEqualWith.mjs';
|
|
159
168
|
export { isError } from './predicate/isError.mjs';
|
|
160
169
|
export { isFinite } from './predicate/isFinite.mjs';
|
|
161
|
-
export {
|
|
162
|
-
export { isMatch } from './predicate/isMatch.mjs';
|
|
170
|
+
export { isInteger } from './predicate/isInteger.mjs';
|
|
163
171
|
export { isMap } from './predicate/isMap.mjs';
|
|
164
|
-
export {
|
|
172
|
+
export { isMatch } from './predicate/isMatch.mjs';
|
|
173
|
+
export { isNaN } from './predicate/isNaN.mjs';
|
|
174
|
+
export { isNil } from './predicate/isNil.mjs';
|
|
175
|
+
export { isNumber } from './predicate/isNumber.mjs';
|
|
176
|
+
export { isObject } from './predicate/isObject.mjs';
|
|
177
|
+
export { isObjectLike } from './predicate/isObjectLike.mjs';
|
|
178
|
+
export { isPlainObject } from './predicate/isPlainObject.mjs';
|
|
165
179
|
export { isRegExp } from './predicate/isRegExp.mjs';
|
|
180
|
+
export { isSafeInteger } from './predicate/isSafeInteger.mjs';
|
|
181
|
+
export { isSet } from './predicate/isSet.mjs';
|
|
166
182
|
export { isString } from './predicate/isString.mjs';
|
|
167
|
-
export {
|
|
168
|
-
export {
|
|
183
|
+
export { isSymbol } from './predicate/isSymbol.mjs';
|
|
184
|
+
export { isTypedArray } from './predicate/isTypedArray.mjs';
|
|
169
185
|
export { isWeakMap } from './predicate/isWeakMap.mjs';
|
|
170
186
|
export { isWeakSet } from './predicate/isWeakSet.mjs';
|
|
171
|
-
export {
|
|
172
|
-
export {
|
|
173
|
-
export { isInteger } from './predicate/isInteger.mjs';
|
|
174
|
-
export { isSafeInteger } from './predicate/isSafeInteger.mjs';
|
|
175
|
-
export { isNumber } from './predicate/isNumber.mjs';
|
|
176
|
-
export { isNaN } from './predicate/isNaN.mjs';
|
|
177
|
-
export { isArrayLikeObject } from './predicate/isArrayLikeObject.mjs';
|
|
178
|
-
export { isNil } from './predicate/isNil.mjs';
|
|
179
|
-
export { isEqualWith } from './predicate/isEqualWith.mjs';
|
|
187
|
+
export { matches } from './predicate/matches.mjs';
|
|
188
|
+
export { matchesProperty } from './predicate/matchesProperty.mjs';
|
|
180
189
|
export { camelCase } from './string/camelCase.mjs';
|
|
190
|
+
export { endsWith } from './string/endsWith.mjs';
|
|
181
191
|
export { kebabCase } from './string/kebabCase.mjs';
|
|
182
|
-
export { snakeCase } from './string/snakeCase.mjs';
|
|
183
|
-
export { startCase } from './string/startCase.mjs';
|
|
184
192
|
export { lowerCase } from './string/lowerCase.mjs';
|
|
185
|
-
export { upperCase } from './string/upperCase.mjs';
|
|
186
|
-
export { startsWith } from './string/startsWith.mjs';
|
|
187
|
-
export { endsWith } from './string/endsWith.mjs';
|
|
188
193
|
export { pad } from './string/pad.mjs';
|
|
189
|
-
export { padStart } from './string/padStart.mjs';
|
|
190
194
|
export { padEnd } from './string/padEnd.mjs';
|
|
195
|
+
export { padStart } from './string/padStart.mjs';
|
|
191
196
|
export { repeat } from './string/repeat.mjs';
|
|
197
|
+
export { snakeCase } from './string/snakeCase.mjs';
|
|
198
|
+
export { startCase } from './string/startCase.mjs';
|
|
199
|
+
export { startsWith } from './string/startsWith.mjs';
|
|
200
|
+
export { upperCase } from './string/upperCase.mjs';
|
|
192
201
|
export { trim } from './string/trim.mjs';
|
|
193
|
-
export { trimStart } from './string/trimStart.mjs';
|
|
194
202
|
export { trimEnd } from './string/trimEnd.mjs';
|
|
195
|
-
export {
|
|
196
|
-
export { max } from './math/max.mjs';
|
|
197
|
-
export { min } from './math/min.mjs';
|
|
198
|
-
export { ceil } from './math/ceil.mjs';
|
|
199
|
-
export { floor } from './math/floor.mjs';
|
|
200
|
-
export { round } from './math/round.mjs';
|
|
201
|
-
export { parseInt } from './math/parseInt.mjs';
|
|
202
|
-
export { inRange } from './math/inRange.mjs';
|
|
203
|
-
export { random } from './math/random.mjs';
|
|
203
|
+
export { trimStart } from './string/trimStart.mjs';
|
|
204
204
|
export { constant } from './util/constant.mjs';
|
|
205
|
-
export { toPath } from './util/toPath.mjs';
|
|
206
|
-
export { toString } from './util/toString.mjs';
|
|
207
|
-
export { toNumber } from './util/toNumber.mjs';
|
|
208
|
-
export { toInteger } from './util/toInteger.mjs';
|
|
209
|
-
export { toFinite } from './util/toFinite.mjs';
|
|
210
205
|
export { eq } from './util/eq.mjs';
|
|
211
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';
|
|
210
|
+
export { toPath } from './util/toPath.mjs';
|
|
211
|
+
export { toString } from './util/toString.mjs';
|
package/dist/compat/index.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ export { countBy } from '../array/countBy.js';
|
|
|
4
4
|
export { differenceBy } from '../array/differenceBy.js';
|
|
5
5
|
export { differenceWith } from '../array/differenceWith.js';
|
|
6
6
|
export { dropRight } from '../array/dropRight.js';
|
|
7
|
-
export { dropRightWhile } from '../array/dropRightWhile.js';
|
|
8
7
|
export { flatMap } from '../array/flatMap.js';
|
|
9
8
|
export { flatMapDeep } from '../array/flatMapDeep.js';
|
|
10
9
|
export { forEachRight } from '../array/forEachRight.js';
|
|
@@ -57,48 +56,50 @@ export { partialRight } from '../function/partialRight.js';
|
|
|
57
56
|
export { mean } from '../math/mean.js';
|
|
58
57
|
export { meanBy } from '../math/meanBy.js';
|
|
59
58
|
export { randomInt } from '../math/randomInt.js';
|
|
60
|
-
export { sum } from '../math/sum.js';
|
|
61
|
-
export { sumBy } from '../math/sumBy.js';
|
|
62
59
|
export { range } from '../math/range.js';
|
|
63
60
|
export { rangeRight } from '../math/rangeRight.js';
|
|
64
|
-
export {
|
|
65
|
-
export {
|
|
66
|
-
export { invert } from '../object/invert.js';
|
|
61
|
+
export { sum } from '../math/sum.js';
|
|
62
|
+
export { sumBy } from '../math/sumBy.js';
|
|
67
63
|
export { clone } from '../object/clone.js';
|
|
68
64
|
export { flattenObject } from '../object/flattenObject.js';
|
|
65
|
+
export { invert } from '../object/invert.js';
|
|
66
|
+
export { omitBy } from '../object/omitBy.js';
|
|
67
|
+
export { pickBy } from '../object/pickBy.js';
|
|
69
68
|
export { toMerged } from '../object/toMerged.js';
|
|
70
69
|
export { isBlob } from '../predicate/isBlob.js';
|
|
71
70
|
export { isDate } from '../predicate/isDate.js';
|
|
72
71
|
export { isEqual } from '../predicate/isEqual.js';
|
|
73
|
-
export { isNotNil } from '../predicate/isNotNil.js';
|
|
74
|
-
export { isNull } from '../predicate/isNull.js';
|
|
75
|
-
export { isUndefined } from '../predicate/isUndefined.js';
|
|
76
|
-
export { isLength } from '../predicate/isLength.js';
|
|
77
72
|
export { isFunction } from '../predicate/isFunction.js';
|
|
78
|
-
export {
|
|
73
|
+
export { isJSONArray } from '../predicate/isJSONArray.js';
|
|
79
74
|
export { isJSONObject } from '../predicate/isJSONObject.js';
|
|
80
75
|
export { isJSONValue } from '../predicate/isJSONValue.js';
|
|
81
|
-
export {
|
|
76
|
+
export { isLength } from '../predicate/isLength.js';
|
|
77
|
+
export { isNotNil } from '../predicate/isNotNil.js';
|
|
78
|
+
export { isNull } from '../predicate/isNull.js';
|
|
79
|
+
export { isPrimitive } from '../predicate/isPrimitive.js';
|
|
80
|
+
export { isUndefined } from '../predicate/isUndefined.js';
|
|
82
81
|
export { delay } from '../promise/delay.js';
|
|
83
|
-
export { withTimeout } from '../promise/withTimeout.js';
|
|
84
82
|
export { timeout } from '../promise/timeout.js';
|
|
83
|
+
export { withTimeout } from '../promise/withTimeout.js';
|
|
85
84
|
export { capitalize } from '../string/capitalize.js';
|
|
86
|
-
export { pascalCase } from '../string/pascalCase.js';
|
|
87
85
|
export { constantCase } from '../string/constantCase.js';
|
|
88
|
-
export { upperFirst } from '../string/upperFirst.js';
|
|
89
|
-
export { lowerFirst } from '../string/lowerFirst.js';
|
|
90
86
|
export { deburr } from '../string/deburr.js';
|
|
91
87
|
export { escape } from '../string/escape.js';
|
|
92
88
|
export { escapeRegExp } from '../string/escapeRegExp.js';
|
|
89
|
+
export { lowerFirst } from '../string/lowerFirst.js';
|
|
90
|
+
export { pascalCase } from '../string/pascalCase.js';
|
|
93
91
|
export { unescape } from '../string/unescape.js';
|
|
92
|
+
export { upperFirst } from '../string/upperFirst.js';
|
|
94
93
|
export { castArray } from './array/castArray.js';
|
|
95
94
|
export { chunk } from './array/chunk.js';
|
|
96
95
|
export { concat } from './array/concat.js';
|
|
97
96
|
export { difference } from './array/difference.js';
|
|
98
97
|
export { drop } from './array/drop.js';
|
|
99
98
|
export { dropWhile } from './array/dropWhile.js';
|
|
99
|
+
export { dropRightWhile } from './array/dropRightWhile.js';
|
|
100
100
|
export { every } from './array/every.js';
|
|
101
101
|
export { fill } from './array/fill.js';
|
|
102
|
+
export { filter } from './array/filter.js';
|
|
102
103
|
export { find } from './array/find.js';
|
|
103
104
|
export { findIndex } from './array/findIndex.js';
|
|
104
105
|
export { findLastIndex } from './array/findLastIndex.js';
|
|
@@ -109,103 +110,102 @@ export { includes } from './array/includes.js';
|
|
|
109
110
|
export { indexOf } from './array/indexOf.js';
|
|
110
111
|
export { join } from './array/join.js';
|
|
111
112
|
export { orderBy } from './array/orderBy.js';
|
|
112
|
-
export { sortBy } from './array/sortBy.js';
|
|
113
113
|
export { size } from './array/size.js';
|
|
114
114
|
export { some } from './array/some.js';
|
|
115
|
+
export { sortBy } from './array/sortBy.js';
|
|
115
116
|
export { take } from './array/take.js';
|
|
116
117
|
export { zipObjectDeep } from './array/zipObjectDeep.js';
|
|
117
|
-
export { filter } from './array/filter.js';
|
|
118
118
|
export { ary } from './function/ary.js';
|
|
119
|
-
export {
|
|
119
|
+
export { attempt } from './function/attempt.js';
|
|
120
120
|
export { before } from './function/before.js';
|
|
121
|
+
export { bind } from './function/bind.js';
|
|
121
122
|
export { bindKey } from './function/bindKey.js';
|
|
122
|
-
export { defer } from './function/defer.js';
|
|
123
|
-
export { rest } from './function/rest.js';
|
|
124
|
-
export { spread } from './function/spread.js';
|
|
125
|
-
export { attempt } from './function/attempt.js';
|
|
126
|
-
export { rearg } from './function/rearg.js';
|
|
127
123
|
export { curry } from './function/curry.js';
|
|
128
124
|
export { curryRight } from './function/curryRight.js';
|
|
129
125
|
export { debounce } from './function/debounce.js';
|
|
130
|
-
export {
|
|
126
|
+
export { defer } from './function/defer.js';
|
|
131
127
|
export { flip } from './function/flip.js';
|
|
132
128
|
export { flow } from './function/flow.js';
|
|
133
129
|
export { flowRight } from './function/flowRight.js';
|
|
130
|
+
export { rearg } from './function/rearg.js';
|
|
131
|
+
export { rest } from './function/rest.js';
|
|
132
|
+
export { spread } from './function/spread.js';
|
|
133
|
+
export { throttle } from './function/throttle.js';
|
|
134
|
+
export { ceil } from './math/ceil.js';
|
|
135
|
+
export { clamp } from './math/clamp.js';
|
|
136
|
+
export { floor } from './math/floor.js';
|
|
137
|
+
export { inRange } from './math/inRange.js';
|
|
138
|
+
export { max } from './math/max.js';
|
|
139
|
+
export { min } from './math/min.js';
|
|
140
|
+
export { parseInt } from './math/parseInt.js';
|
|
141
|
+
export { random } from './math/random.js';
|
|
142
|
+
export { round } from './math/round.js';
|
|
143
|
+
export { cloneDeep } from './object/cloneDeep.js';
|
|
144
|
+
export { defaults } from './object/defaults.js';
|
|
145
|
+
export { fromPairs } from './object/fromPairs.js';
|
|
134
146
|
export { get } from './object/get.js';
|
|
135
|
-
export { set } from './object/set.js';
|
|
136
|
-
export { pick } from './object/pick.js';
|
|
137
|
-
export { omit } from './object/omit.js';
|
|
138
147
|
export { has } from './object/has.js';
|
|
139
|
-
export {
|
|
148
|
+
export { invertBy } from './object/invertBy.js';
|
|
140
149
|
export { mapKeys } from './object/mapKeys.js';
|
|
141
150
|
export { mapValues } from './object/mapValues.js';
|
|
142
151
|
export { merge } from './object/merge.js';
|
|
143
152
|
export { mergeWith } from './object/mergeWith.js';
|
|
144
|
-
export {
|
|
145
|
-
export {
|
|
146
|
-
export {
|
|
147
|
-
export {
|
|
148
|
-
export { defaults } from './object/defaults.js';
|
|
153
|
+
export { omit } from './object/omit.js';
|
|
154
|
+
export { pick } from './object/pick.js';
|
|
155
|
+
export { property } from './object/property.js';
|
|
156
|
+
export { set } from './object/set.js';
|
|
149
157
|
export { toDefaulted } from './object/toDefaulted.js';
|
|
150
|
-
export {
|
|
151
|
-
export {
|
|
158
|
+
export { unset } from './object/unset.js';
|
|
159
|
+
export { conforms } from './predicate/conforms.js';
|
|
160
|
+
export { conformsTo } from './predicate/conformsTo.js';
|
|
152
161
|
export { isArguments } from './predicate/isArguments.js';
|
|
162
|
+
export { isArray } from './predicate/isArray.js';
|
|
153
163
|
export { isArrayBuffer } from './predicate/isArrayBuffer.js';
|
|
154
164
|
export { isArrayLike } from './predicate/isArrayLike.js';
|
|
155
|
-
export {
|
|
156
|
-
export { isObject } from './predicate/isObject.js';
|
|
157
|
-
export { isObjectLike } from './predicate/isObjectLike.js';
|
|
165
|
+
export { isArrayLikeObject } from './predicate/isArrayLikeObject.js';
|
|
158
166
|
export { isBoolean } from './predicate/isBoolean.js';
|
|
167
|
+
export { isEqualWith } from './predicate/isEqualWith.js';
|
|
159
168
|
export { isError } from './predicate/isError.js';
|
|
160
169
|
export { isFinite } from './predicate/isFinite.js';
|
|
161
|
-
export {
|
|
162
|
-
export { isMatch } from './predicate/isMatch.js';
|
|
170
|
+
export { isInteger } from './predicate/isInteger.js';
|
|
163
171
|
export { isMap } from './predicate/isMap.js';
|
|
164
|
-
export {
|
|
172
|
+
export { isMatch } from './predicate/isMatch.js';
|
|
173
|
+
export { isNaN } from './predicate/isNaN.js';
|
|
174
|
+
export { isNil } from './predicate/isNil.js';
|
|
175
|
+
export { isNumber } from './predicate/isNumber.js';
|
|
176
|
+
export { isObject } from './predicate/isObject.js';
|
|
177
|
+
export { isObjectLike } from './predicate/isObjectLike.js';
|
|
178
|
+
export { isPlainObject } from './predicate/isPlainObject.js';
|
|
165
179
|
export { isRegExp } from './predicate/isRegExp.js';
|
|
180
|
+
export { isSafeInteger } from './predicate/isSafeInteger.js';
|
|
181
|
+
export { isSet } from './predicate/isSet.js';
|
|
166
182
|
export { isString } from './predicate/isString.js';
|
|
167
|
-
export {
|
|
168
|
-
export {
|
|
183
|
+
export { isSymbol } from './predicate/isSymbol.js';
|
|
184
|
+
export { isTypedArray } from './predicate/isTypedArray.js';
|
|
169
185
|
export { isWeakMap } from './predicate/isWeakMap.js';
|
|
170
186
|
export { isWeakSet } from './predicate/isWeakSet.js';
|
|
171
|
-
export {
|
|
172
|
-
export {
|
|
173
|
-
export { isInteger } from './predicate/isInteger.js';
|
|
174
|
-
export { isSafeInteger } from './predicate/isSafeInteger.js';
|
|
175
|
-
export { isNumber } from './predicate/isNumber.js';
|
|
176
|
-
export { isNaN } from './predicate/isNaN.js';
|
|
177
|
-
export { isArrayLikeObject } from './predicate/isArrayLikeObject.js';
|
|
178
|
-
export { isNil } from './predicate/isNil.js';
|
|
179
|
-
export { isEqualWith } from './predicate/isEqualWith.js';
|
|
187
|
+
export { matches } from './predicate/matches.js';
|
|
188
|
+
export { matchesProperty } from './predicate/matchesProperty.js';
|
|
180
189
|
export { camelCase } from './string/camelCase.js';
|
|
190
|
+
export { endsWith } from './string/endsWith.js';
|
|
181
191
|
export { kebabCase } from './string/kebabCase.js';
|
|
182
|
-
export { snakeCase } from './string/snakeCase.js';
|
|
183
|
-
export { startCase } from './string/startCase.js';
|
|
184
192
|
export { lowerCase } from './string/lowerCase.js';
|
|
185
|
-
export { upperCase } from './string/upperCase.js';
|
|
186
|
-
export { startsWith } from './string/startsWith.js';
|
|
187
|
-
export { endsWith } from './string/endsWith.js';
|
|
188
193
|
export { pad } from './string/pad.js';
|
|
189
|
-
export { padStart } from './string/padStart.js';
|
|
190
194
|
export { padEnd } from './string/padEnd.js';
|
|
195
|
+
export { padStart } from './string/padStart.js';
|
|
191
196
|
export { repeat } from './string/repeat.js';
|
|
197
|
+
export { snakeCase } from './string/snakeCase.js';
|
|
198
|
+
export { startCase } from './string/startCase.js';
|
|
199
|
+
export { startsWith } from './string/startsWith.js';
|
|
200
|
+
export { upperCase } from './string/upperCase.js';
|
|
192
201
|
export { trim } from './string/trim.js';
|
|
193
|
-
export { trimStart } from './string/trimStart.js';
|
|
194
202
|
export { trimEnd } from './string/trimEnd.js';
|
|
195
|
-
export {
|
|
196
|
-
export { max } from './math/max.js';
|
|
197
|
-
export { min } from './math/min.js';
|
|
198
|
-
export { ceil } from './math/ceil.js';
|
|
199
|
-
export { floor } from './math/floor.js';
|
|
200
|
-
export { round } from './math/round.js';
|
|
201
|
-
export { parseInt } from './math/parseInt.js';
|
|
202
|
-
export { inRange } from './math/inRange.js';
|
|
203
|
-
export { random } from './math/random.js';
|
|
203
|
+
export { trimStart } from './string/trimStart.js';
|
|
204
204
|
export { constant } from './util/constant.js';
|
|
205
|
-
export { toPath } from './util/toPath.js';
|
|
206
|
-
export { toString } from './util/toString.js';
|
|
207
|
-
export { toNumber } from './util/toNumber.js';
|
|
208
|
-
export { toInteger } from './util/toInteger.js';
|
|
209
|
-
export { toFinite } from './util/toFinite.js';
|
|
210
205
|
export { eq } from './util/eq.js';
|
|
211
206
|
export { times } from './util/times.js';
|
|
207
|
+
export { toFinite } from './util/toFinite.js';
|
|
208
|
+
export { toInteger } from './util/toInteger.js';
|
|
209
|
+
export { toNumber } from './util/toNumber.js';
|
|
210
|
+
export { toPath } from './util/toPath.js';
|
|
211
|
+
export { toString } from './util/toString.js';
|