es-toolkit 1.21.0 → 1.22.0-dev.690
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 +13 -0
- package/dist/_chunk/{rest-pUyjvl.js → flowRight-BzdOZX.js} +16 -0
- package/dist/_chunk/{isWeakSet-1xFSnK.js → isWeakSet-clQklw.js} +10 -0
- package/dist/_chunk/pad-Cw2pvt.js +207 -0
- package/dist/_chunk/{toMerged-D-sLFv.js → toMerged-2WPeoI.js} +5 -2
- package/dist/_chunk/{zipWith-DEcUS4.js → zipWith-EOU_KZ.js} +1 -1
- package/dist/array/dropWhile.d.mts +1 -1
- package/dist/array/dropWhile.d.ts +1 -1
- package/dist/array/dropWhile.mjs +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/dropWhile.d.mts +40 -0
- package/dist/compat/array/dropWhile.d.ts +40 -0
- package/dist/compat/array/dropWhile.mjs +27 -0
- package/dist/compat/array/every.d.mts +139 -0
- package/dist/compat/array/every.d.ts +139 -0
- package/dist/compat/array/every.mjs +49 -0
- package/dist/compat/array/filter.d.mts +118 -0
- package/dist/compat/array/filter.d.ts +118 -0
- package/dist/compat/array/filter.mjs +27 -0
- package/dist/compat/array/find.d.mts +1 -1
- package/dist/compat/array/find.d.ts +1 -1
- package/dist/compat/array/includes.d.mts +62 -0
- package/dist/compat/array/includes.d.ts +62 -0
- package/dist/compat/array/includes.mjs +42 -0
- package/dist/compat/function/flip.d.mts +20 -0
- package/dist/compat/function/flip.d.ts +20 -0
- package/dist/compat/function/flip.mjs +7 -0
- package/dist/compat/index.d.mts +9 -1
- package/dist/compat/index.d.ts +9 -1
- package/dist/compat/index.js +247 -97
- package/dist/compat/index.mjs +9 -1
- package/dist/compat/string/startCase.mjs +16 -2
- package/dist/compat/util/toInteger.d.mts +3 -0
- package/dist/compat/util/toInteger.d.ts +3 -0
- package/dist/function/flow.d.mts +132 -0
- package/dist/function/flow.d.ts +132 -0
- package/dist/function/flow.mjs +11 -0
- package/dist/function/flowRight.d.mts +144 -0
- package/dist/function/flowRight.d.ts +144 -0
- package/dist/function/flowRight.mjs +7 -0
- package/dist/function/index.d.mts +2 -0
- package/dist/function/index.d.ts +2 -0
- package/dist/function/index.js +17 -14
- package/dist/function/index.mjs +2 -0
- package/dist/function/throttle.mjs +1 -0
- package/dist/index.d.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +39 -34
- package/dist/index.mjs +4 -0
- package/dist/object/clone.mjs +4 -1
- package/dist/object/cloneDeep.mjs +1 -1
- package/dist/object/index.js +1 -1
- package/dist/predicate/index.d.mts +2 -0
- package/dist/predicate/index.d.ts +2 -0
- package/dist/predicate/index.js +3 -1
- package/dist/predicate/index.mjs +2 -0
- package/dist/predicate/isMap.d.mts +20 -0
- package/dist/predicate/isMap.d.ts +20 -0
- package/dist/predicate/isMap.mjs +5 -0
- package/dist/predicate/isSet.d.mts +20 -0
- package/dist/predicate/isSet.d.ts +20 -0
- package/dist/predicate/isSet.mjs +5 -0
- package/dist/string/index.js +20 -204
- package/package.json +2 -2
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { identity } from '../_internal/identity.mjs';
|
|
2
|
+
import { property } from '../object/property.mjs';
|
|
3
|
+
import { isArray } from '../predicate/isArray.mjs';
|
|
4
|
+
import { matches } from '../predicate/matches.mjs';
|
|
5
|
+
import { matchesProperty } from '../predicate/matchesProperty.mjs';
|
|
6
|
+
|
|
7
|
+
function filter(source, predicate) {
|
|
8
|
+
if (!predicate) {
|
|
9
|
+
predicate = identity;
|
|
10
|
+
}
|
|
11
|
+
const collection = isArray(source) ? source : Object.values(source);
|
|
12
|
+
switch (typeof predicate) {
|
|
13
|
+
case 'function': {
|
|
14
|
+
return collection.filter(predicate);
|
|
15
|
+
}
|
|
16
|
+
case 'object': {
|
|
17
|
+
return isArray(predicate)
|
|
18
|
+
? collection.filter(matchesProperty(predicate[0], predicate[1]))
|
|
19
|
+
: collection.filter(matches(predicate));
|
|
20
|
+
}
|
|
21
|
+
case 'string': {
|
|
22
|
+
return collection.filter(property(predicate));
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { filter };
|
|
@@ -72,7 +72,7 @@ declare function find<T>(arr: readonly T[], propertyToCheck: string): T | undefi
|
|
|
72
72
|
* const result = find(obj, (item) => item > 2);
|
|
73
73
|
* console.log(result); // 3
|
|
74
74
|
*/
|
|
75
|
-
declare function find<T extends Record<string, unknown>>(object: T, doesMatch: (item: T[keyof T], index:
|
|
75
|
+
declare function find<T extends Record<string, unknown>>(object: T, doesMatch: (item: T[keyof T], index: keyof T, object: T) => unknown): T | undefined;
|
|
76
76
|
/**
|
|
77
77
|
* Finds the first item in an object that matches the given partial value.
|
|
78
78
|
*
|
|
@@ -72,7 +72,7 @@ declare function find<T>(arr: readonly T[], propertyToCheck: string): T | undefi
|
|
|
72
72
|
* const result = find(obj, (item) => item > 2);
|
|
73
73
|
* console.log(result); // 3
|
|
74
74
|
*/
|
|
75
|
-
declare function find<T extends Record<string, unknown>>(object: T, doesMatch: (item: T[keyof T], index:
|
|
75
|
+
declare function find<T extends Record<string, unknown>>(object: T, doesMatch: (item: T[keyof T], index: keyof T, object: T) => unknown): T | undefined;
|
|
76
76
|
/**
|
|
77
77
|
* Finds the first item in an object that matches the given partial value.
|
|
78
78
|
*
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks if an item is included in an array.
|
|
3
|
+
*
|
|
4
|
+
* @param {T[]} arr - The array to search in.
|
|
5
|
+
* @param {T} item - The item to search for.
|
|
6
|
+
* @param {number} [fromIndex=0] - The index to start searching from. If negative, it is treated as an offset from the end of the array.
|
|
7
|
+
* @returns {boolean} `true` if the item is found in the array, `false` otherwise.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* includes([1, 2, 3], 2); // true
|
|
11
|
+
* includes([1, 2, 3], 4); // false
|
|
12
|
+
* includes([1, 2, 3], 3, -1); // true
|
|
13
|
+
*/
|
|
14
|
+
declare function includes<T>(arr: readonly T[], item: T, fromIndex?: number): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Checks if a value is included in an object.
|
|
17
|
+
*
|
|
18
|
+
* @param {T} obj - The object to search in.
|
|
19
|
+
* @param {T[keyof T]} value - The value to search for.
|
|
20
|
+
* @param {number} [fromIndex=0] - The index to start searching from. If negative, it is treated as an offset from the end of the array.
|
|
21
|
+
* @returns {boolean} `true` if the value is found in the object, `false` otherwise.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* includes({ a: 1, b: 'a', c: NaN }, 1); // true
|
|
25
|
+
* includes({ a: 1, b: 'a', c: NaN }, 'a'); // true
|
|
26
|
+
* includes({ a: 1, b: 'a', c: NaN }, NaN); // true
|
|
27
|
+
* includes({ [Symbol('sym1')]: 1 }, 1); // false
|
|
28
|
+
*/
|
|
29
|
+
declare function includes<T extends Record<string, any>>(obj: T, value: T[keyof T], fromIndex?: number): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Checks if a substring is included in a string.
|
|
32
|
+
*
|
|
33
|
+
* @param {string} str - The string to search in.
|
|
34
|
+
* @param {string} substr - The substring to search for.
|
|
35
|
+
* @param {number} [fromIndex=0] - The index to start searching from. If negative, it is treated as an offset from the end of the string.
|
|
36
|
+
* @returns {boolean} `true` if the substring is found in the string, `false` otherwise.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* includes('hello world', 'world'); // true
|
|
40
|
+
* includes('hello world', 'test'); // false
|
|
41
|
+
* includes('hello world', 'o', 5); // true
|
|
42
|
+
*/
|
|
43
|
+
declare function includes(str: string, substr: string, fromIndex?: number): boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Checks if a specified value exists within a given source, which can be an array, an object, or a string.
|
|
46
|
+
*
|
|
47
|
+
* The comparison uses SameValueZero to check for inclusion.
|
|
48
|
+
*
|
|
49
|
+
* @param {T[] | Record<string, any> | string} source - The source to search in. It can be an array, an object, or a string.
|
|
50
|
+
* @param {T} [target] - The value to search for in the source.
|
|
51
|
+
* @param {number} [fromIndex=0] - The index to start searching from. If negative, it is treated as an offset from the end of the source.
|
|
52
|
+
* @returns {boolean} `true` if the value is found in the source, `false` otherwise.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* includes([1, 2, 3], 2); // true
|
|
56
|
+
* includes({ a: 1, b: 'a', c: NaN }, 'a'); // true
|
|
57
|
+
* includes('hello world', 'world'); // true
|
|
58
|
+
* includes('hello world', 'test'); // false
|
|
59
|
+
*/
|
|
60
|
+
declare function includes<T>(source: readonly T[] | Record<string, any> | string, target?: T, fromIndex?: number): boolean;
|
|
61
|
+
|
|
62
|
+
export { includes };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks if an item is included in an array.
|
|
3
|
+
*
|
|
4
|
+
* @param {T[]} arr - The array to search in.
|
|
5
|
+
* @param {T} item - The item to search for.
|
|
6
|
+
* @param {number} [fromIndex=0] - The index to start searching from. If negative, it is treated as an offset from the end of the array.
|
|
7
|
+
* @returns {boolean} `true` if the item is found in the array, `false` otherwise.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* includes([1, 2, 3], 2); // true
|
|
11
|
+
* includes([1, 2, 3], 4); // false
|
|
12
|
+
* includes([1, 2, 3], 3, -1); // true
|
|
13
|
+
*/
|
|
14
|
+
declare function includes<T>(arr: readonly T[], item: T, fromIndex?: number): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Checks if a value is included in an object.
|
|
17
|
+
*
|
|
18
|
+
* @param {T} obj - The object to search in.
|
|
19
|
+
* @param {T[keyof T]} value - The value to search for.
|
|
20
|
+
* @param {number} [fromIndex=0] - The index to start searching from. If negative, it is treated as an offset from the end of the array.
|
|
21
|
+
* @returns {boolean} `true` if the value is found in the object, `false` otherwise.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* includes({ a: 1, b: 'a', c: NaN }, 1); // true
|
|
25
|
+
* includes({ a: 1, b: 'a', c: NaN }, 'a'); // true
|
|
26
|
+
* includes({ a: 1, b: 'a', c: NaN }, NaN); // true
|
|
27
|
+
* includes({ [Symbol('sym1')]: 1 }, 1); // false
|
|
28
|
+
*/
|
|
29
|
+
declare function includes<T extends Record<string, any>>(obj: T, value: T[keyof T], fromIndex?: number): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Checks if a substring is included in a string.
|
|
32
|
+
*
|
|
33
|
+
* @param {string} str - The string to search in.
|
|
34
|
+
* @param {string} substr - The substring to search for.
|
|
35
|
+
* @param {number} [fromIndex=0] - The index to start searching from. If negative, it is treated as an offset from the end of the string.
|
|
36
|
+
* @returns {boolean} `true` if the substring is found in the string, `false` otherwise.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* includes('hello world', 'world'); // true
|
|
40
|
+
* includes('hello world', 'test'); // false
|
|
41
|
+
* includes('hello world', 'o', 5); // true
|
|
42
|
+
*/
|
|
43
|
+
declare function includes(str: string, substr: string, fromIndex?: number): boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Checks if a specified value exists within a given source, which can be an array, an object, or a string.
|
|
46
|
+
*
|
|
47
|
+
* The comparison uses SameValueZero to check for inclusion.
|
|
48
|
+
*
|
|
49
|
+
* @param {T[] | Record<string, any> | string} source - The source to search in. It can be an array, an object, or a string.
|
|
50
|
+
* @param {T} [target] - The value to search for in the source.
|
|
51
|
+
* @param {number} [fromIndex=0] - The index to start searching from. If negative, it is treated as an offset from the end of the source.
|
|
52
|
+
* @returns {boolean} `true` if the value is found in the source, `false` otherwise.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* includes([1, 2, 3], 2); // true
|
|
56
|
+
* includes({ a: 1, b: 'a', c: NaN }, 'a'); // true
|
|
57
|
+
* includes('hello world', 'world'); // true
|
|
58
|
+
* includes('hello world', 'test'); // false
|
|
59
|
+
*/
|
|
60
|
+
declare function includes<T>(source: readonly T[] | Record<string, any> | string, target?: T, fromIndex?: number): boolean;
|
|
61
|
+
|
|
62
|
+
export { includes };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { isString } from '../predicate/isString.mjs';
|
|
2
|
+
import { toInteger } from '../util/toInteger.mjs';
|
|
3
|
+
|
|
4
|
+
function includes(source, target, fromIndex, guard) {
|
|
5
|
+
if (source == null) {
|
|
6
|
+
return false;
|
|
7
|
+
}
|
|
8
|
+
if (guard || !fromIndex) {
|
|
9
|
+
fromIndex = 0;
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
fromIndex = toInteger(fromIndex);
|
|
13
|
+
}
|
|
14
|
+
if (isString(source)) {
|
|
15
|
+
if (fromIndex > source.length || target instanceof RegExp) {
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
if (fromIndex < 0) {
|
|
19
|
+
fromIndex = Math.max(0, source.length + fromIndex);
|
|
20
|
+
}
|
|
21
|
+
return source.includes(target, fromIndex);
|
|
22
|
+
}
|
|
23
|
+
if (Array.isArray(source)) {
|
|
24
|
+
return source.includes(target, fromIndex);
|
|
25
|
+
}
|
|
26
|
+
const keys = [];
|
|
27
|
+
for (const key in source) {
|
|
28
|
+
keys.push(key);
|
|
29
|
+
}
|
|
30
|
+
if (fromIndex < 0) {
|
|
31
|
+
fromIndex = Math.max(0, keys.length + fromIndex);
|
|
32
|
+
}
|
|
33
|
+
for (let i = fromIndex; i < keys.length; i++) {
|
|
34
|
+
const value = Reflect.get(source, keys[i]);
|
|
35
|
+
if (value === target || (Number.isNaN(value) && Number.isNaN(target))) {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export { includes };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reverses the order of arguments for a given function.
|
|
3
|
+
*
|
|
4
|
+
* @template F - The type of the function being flipped.
|
|
5
|
+
* @param {F} func - The function whose arguments will be reversed.
|
|
6
|
+
* @returns {(...args: Reversed<Parameters<F>>) => ReturnType<F>} A new function that takes the
|
|
7
|
+
* reversed arguments and returns the result of calling `func`.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* function fn(a: string, b: string, c: string, d: string) {
|
|
11
|
+
* return [a, b, c, d];
|
|
12
|
+
* }
|
|
13
|
+
*
|
|
14
|
+
* const flipped = flip(fn);
|
|
15
|
+
* flipped('a', 'b', 'c', 'd'); // => ['d', 'c', 'b', 'a']
|
|
16
|
+
*/
|
|
17
|
+
declare function flip<F extends (...args: any[]) => any>(func: F): (...args: Reversed<Parameters<F>>) => ReturnType<F>;
|
|
18
|
+
type Reversed<T extends any[]> = T extends [infer First, ...infer Rest] ? [...Reversed<Rest>, First] : [];
|
|
19
|
+
|
|
20
|
+
export { flip };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reverses the order of arguments for a given function.
|
|
3
|
+
*
|
|
4
|
+
* @template F - The type of the function being flipped.
|
|
5
|
+
* @param {F} func - The function whose arguments will be reversed.
|
|
6
|
+
* @returns {(...args: Reversed<Parameters<F>>) => ReturnType<F>} A new function that takes the
|
|
7
|
+
* reversed arguments and returns the result of calling `func`.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* function fn(a: string, b: string, c: string, d: string) {
|
|
11
|
+
* return [a, b, c, d];
|
|
12
|
+
* }
|
|
13
|
+
*
|
|
14
|
+
* const flipped = flip(fn);
|
|
15
|
+
* flipped('a', 'b', 'c', 'd'); // => ['d', 'c', 'b', 'a']
|
|
16
|
+
*/
|
|
17
|
+
declare function flip<F extends (...args: any[]) => any>(func: F): (...args: Reversed<Parameters<F>>) => ReturnType<F>;
|
|
18
|
+
type Reversed<T extends any[]> = T extends [infer First, ...infer Rest] ? [...Reversed<Rest>, First] : [];
|
|
19
|
+
|
|
20
|
+
export { flip };
|
package/dist/compat/index.d.mts
CHANGED
|
@@ -5,7 +5,6 @@ export { differenceBy } from '../array/differenceBy.mjs';
|
|
|
5
5
|
export { differenceWith } from '../array/differenceWith.mjs';
|
|
6
6
|
export { dropRight } from '../array/dropRight.mjs';
|
|
7
7
|
export { dropRightWhile } from '../array/dropRightWhile.mjs';
|
|
8
|
-
export { dropWhile } from '../array/dropWhile.mjs';
|
|
9
8
|
export { flatMap } from '../array/flatMap.mjs';
|
|
10
9
|
export { flatMapDeep } from '../array/flatMapDeep.mjs';
|
|
11
10
|
export { forEachRight } from '../array/forEachRight.mjs';
|
|
@@ -57,6 +56,8 @@ export { MemoizeCache, memoize } from '../function/memoize.mjs';
|
|
|
57
56
|
export { unary } from '../function/unary.mjs';
|
|
58
57
|
export { partial } from '../function/partial.mjs';
|
|
59
58
|
export { partialRight } from '../function/partialRight.mjs';
|
|
59
|
+
export { flow } from '../function/flow.mjs';
|
|
60
|
+
export { flowRight } from '../function/flowRight.mjs';
|
|
60
61
|
export { mean } from '../math/mean.mjs';
|
|
61
62
|
export { meanBy } from '../math/meanBy.mjs';
|
|
62
63
|
export { randomInt } from '../math/randomInt.mjs';
|
|
@@ -71,12 +72,14 @@ export { flattenObject } from '../object/flattenObject.mjs';
|
|
|
71
72
|
export { toMerged } from '../object/toMerged.mjs';
|
|
72
73
|
export { isDate } from '../predicate/isDate.mjs';
|
|
73
74
|
export { isEqual } from '../predicate/isEqual.mjs';
|
|
75
|
+
export { isMap } from '../predicate/isMap.mjs';
|
|
74
76
|
export { isNotNil } from '../predicate/isNotNil.mjs';
|
|
75
77
|
export { isNull } from '../predicate/isNull.mjs';
|
|
76
78
|
export { isUndefined } from '../predicate/isUndefined.mjs';
|
|
77
79
|
export { isLength } from '../predicate/isLength.mjs';
|
|
78
80
|
export { isFunction } from '../predicate/isFunction.mjs';
|
|
79
81
|
export { isPrimitive } from '../predicate/isPrimitive.mjs';
|
|
82
|
+
export { isSet } from '../predicate/isSet.mjs';
|
|
80
83
|
export { delay } from '../promise/delay.mjs';
|
|
81
84
|
export { withTimeout } from '../promise/withTimeout.mjs';
|
|
82
85
|
export { timeout } from '../promise/timeout.mjs';
|
|
@@ -94,6 +97,8 @@ export { chunk } from './array/chunk.mjs';
|
|
|
94
97
|
export { concat } from './array/concat.mjs';
|
|
95
98
|
export { difference } from './array/difference.mjs';
|
|
96
99
|
export { drop } from './array/drop.mjs';
|
|
100
|
+
export { dropWhile } from './array/dropWhile.mjs';
|
|
101
|
+
export { every } from './array/every.mjs';
|
|
97
102
|
export { fill } from './array/fill.mjs';
|
|
98
103
|
export { find } from './array/find.mjs';
|
|
99
104
|
export { findIndex } from './array/findIndex.mjs';
|
|
@@ -101,6 +106,7 @@ export { findLastIndex } from './array/findLastIndex.mjs';
|
|
|
101
106
|
export { flatten } from './array/flatten.mjs';
|
|
102
107
|
export { flattenDeep } from './array/flattenDeep.mjs';
|
|
103
108
|
export { flattenDepth } from './array/flattenDepth.mjs';
|
|
109
|
+
export { includes } from './array/includes.mjs';
|
|
104
110
|
export { indexOf } from './array/indexOf.mjs';
|
|
105
111
|
export { join } from './array/join.mjs';
|
|
106
112
|
export { orderBy } from './array/orderBy.mjs';
|
|
@@ -108,6 +114,7 @@ export { sortBy } from './array/sortBy.mjs';
|
|
|
108
114
|
export { size } from './array/size.mjs';
|
|
109
115
|
export { some } from './array/some.mjs';
|
|
110
116
|
export { zipObjectDeep } from './array/zipObjectDeep.mjs';
|
|
117
|
+
export { filter } from './array/filter.mjs';
|
|
111
118
|
export { ary } from './function/ary.mjs';
|
|
112
119
|
export { bind } from './function/bind.mjs';
|
|
113
120
|
export { bindKey } from './function/bindKey.mjs';
|
|
@@ -119,6 +126,7 @@ export { rearg } from './function/rearg.mjs';
|
|
|
119
126
|
export { curry } from './function/curry.mjs';
|
|
120
127
|
export { debounce } from './function/debounce.mjs';
|
|
121
128
|
export { throttle } from './function/throttle.mjs';
|
|
129
|
+
export { flip } from './function/flip.mjs';
|
|
122
130
|
export { get } from './object/get.mjs';
|
|
123
131
|
export { set } from './object/set.mjs';
|
|
124
132
|
export { pick } from './object/pick.mjs';
|
package/dist/compat/index.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ export { differenceBy } from '../array/differenceBy.js';
|
|
|
5
5
|
export { differenceWith } from '../array/differenceWith.js';
|
|
6
6
|
export { dropRight } from '../array/dropRight.js';
|
|
7
7
|
export { dropRightWhile } from '../array/dropRightWhile.js';
|
|
8
|
-
export { dropWhile } from '../array/dropWhile.js';
|
|
9
8
|
export { flatMap } from '../array/flatMap.js';
|
|
10
9
|
export { flatMapDeep } from '../array/flatMapDeep.js';
|
|
11
10
|
export { forEachRight } from '../array/forEachRight.js';
|
|
@@ -57,6 +56,8 @@ export { MemoizeCache, memoize } from '../function/memoize.js';
|
|
|
57
56
|
export { unary } from '../function/unary.js';
|
|
58
57
|
export { partial } from '../function/partial.js';
|
|
59
58
|
export { partialRight } from '../function/partialRight.js';
|
|
59
|
+
export { flow } from '../function/flow.js';
|
|
60
|
+
export { flowRight } from '../function/flowRight.js';
|
|
60
61
|
export { mean } from '../math/mean.js';
|
|
61
62
|
export { meanBy } from '../math/meanBy.js';
|
|
62
63
|
export { randomInt } from '../math/randomInt.js';
|
|
@@ -71,12 +72,14 @@ export { flattenObject } from '../object/flattenObject.js';
|
|
|
71
72
|
export { toMerged } from '../object/toMerged.js';
|
|
72
73
|
export { isDate } from '../predicate/isDate.js';
|
|
73
74
|
export { isEqual } from '../predicate/isEqual.js';
|
|
75
|
+
export { isMap } from '../predicate/isMap.js';
|
|
74
76
|
export { isNotNil } from '../predicate/isNotNil.js';
|
|
75
77
|
export { isNull } from '../predicate/isNull.js';
|
|
76
78
|
export { isUndefined } from '../predicate/isUndefined.js';
|
|
77
79
|
export { isLength } from '../predicate/isLength.js';
|
|
78
80
|
export { isFunction } from '../predicate/isFunction.js';
|
|
79
81
|
export { isPrimitive } from '../predicate/isPrimitive.js';
|
|
82
|
+
export { isSet } from '../predicate/isSet.js';
|
|
80
83
|
export { delay } from '../promise/delay.js';
|
|
81
84
|
export { withTimeout } from '../promise/withTimeout.js';
|
|
82
85
|
export { timeout } from '../promise/timeout.js';
|
|
@@ -94,6 +97,8 @@ export { chunk } from './array/chunk.js';
|
|
|
94
97
|
export { concat } from './array/concat.js';
|
|
95
98
|
export { difference } from './array/difference.js';
|
|
96
99
|
export { drop } from './array/drop.js';
|
|
100
|
+
export { dropWhile } from './array/dropWhile.js';
|
|
101
|
+
export { every } from './array/every.js';
|
|
97
102
|
export { fill } from './array/fill.js';
|
|
98
103
|
export { find } from './array/find.js';
|
|
99
104
|
export { findIndex } from './array/findIndex.js';
|
|
@@ -101,6 +106,7 @@ export { findLastIndex } from './array/findLastIndex.js';
|
|
|
101
106
|
export { flatten } from './array/flatten.js';
|
|
102
107
|
export { flattenDeep } from './array/flattenDeep.js';
|
|
103
108
|
export { flattenDepth } from './array/flattenDepth.js';
|
|
109
|
+
export { includes } from './array/includes.js';
|
|
104
110
|
export { indexOf } from './array/indexOf.js';
|
|
105
111
|
export { join } from './array/join.js';
|
|
106
112
|
export { orderBy } from './array/orderBy.js';
|
|
@@ -108,6 +114,7 @@ export { sortBy } from './array/sortBy.js';
|
|
|
108
114
|
export { size } from './array/size.js';
|
|
109
115
|
export { some } from './array/some.js';
|
|
110
116
|
export { zipObjectDeep } from './array/zipObjectDeep.js';
|
|
117
|
+
export { filter } from './array/filter.js';
|
|
111
118
|
export { ary } from './function/ary.js';
|
|
112
119
|
export { bind } from './function/bind.js';
|
|
113
120
|
export { bindKey } from './function/bindKey.js';
|
|
@@ -119,6 +126,7 @@ export { rearg } from './function/rearg.js';
|
|
|
119
126
|
export { curry } from './function/curry.js';
|
|
120
127
|
export { debounce } from './function/debounce.js';
|
|
121
128
|
export { throttle } from './function/throttle.js';
|
|
129
|
+
export { flip } from './function/flip.js';
|
|
122
130
|
export { get } from './object/get.js';
|
|
123
131
|
export { set } from './object/set.js';
|
|
124
132
|
export { pick } from './object/pick.js';
|