es-toolkit 1.30.1 → 1.31.0-dev.989
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/{unary-CcTNuC.js → unary-B6qG7C.js} +3 -0
- package/dist/_chunk/{zipWith-nbzldx.js → zipWith-Bdyzuy.js} +47 -4
- package/dist/array/groupBy.mjs +2 -2
- package/dist/array/index.d.mts +2 -0
- package/dist/array/index.d.ts +2 -0
- package/dist/array/index.js +3 -1
- package/dist/array/index.mjs +2 -0
- package/dist/array/pull.mjs +9 -2
- package/dist/array/remove.d.mts +19 -0
- package/dist/array/remove.d.ts +19 -0
- package/dist/array/remove.mjs +20 -0
- package/dist/array/windowed.d.mts +50 -0
- package/dist/array/windowed.d.ts +50 -0
- package/dist/array/windowed.mjs +16 -0
- package/dist/browser.global.js +1 -1
- package/dist/browser.global.js.map +1 -1
- package/dist/compat/array/pull.d.mts +1 -1
- package/dist/compat/array/pull.d.ts +1 -1
- package/dist/compat/array/pull.mjs +1 -2
- package/dist/compat/array/pullAll.d.mts +19 -0
- package/dist/compat/array/pullAll.d.ts +19 -0
- package/dist/compat/array/pullAll.mjs +7 -0
- package/dist/compat/array/remove.d.mts +50 -0
- package/dist/compat/array/remove.d.ts +50 -0
- package/dist/compat/array/remove.mjs +8 -0
- package/dist/compat/array/reverse.d.mts +24 -0
- package/dist/compat/array/reverse.d.ts +24 -0
- package/dist/compat/array/reverse.mjs +8 -0
- package/dist/compat/function/negate.d.mts +16 -0
- package/dist/compat/function/negate.d.ts +16 -0
- package/dist/compat/function/negate.mjs +10 -0
- package/dist/compat/index.d.mts +9 -2
- package/dist/compat/index.d.ts +9 -2
- package/dist/compat/index.js +56 -11
- package/dist/compat/index.mjs +9 -2
- package/dist/compat/math/subtract.d.mts +17 -0
- package/dist/compat/math/subtract.d.ts +17 -0
- package/dist/compat/math/subtract.mjs +5 -0
- package/dist/compat/object/mergeWith.mjs +6 -2
- package/dist/compat/predicate/isBuffer.d.mts +21 -0
- package/dist/compat/predicate/isBuffer.d.ts +21 -0
- package/dist/compat/predicate/isBuffer.mjs +7 -0
- package/dist/compat/predicate/isMatch.mjs +1 -4
- package/dist/compat/util/methodOf.d.mts +22 -0
- package/dist/compat/util/methodOf.d.ts +22 -0
- package/dist/compat/util/methodOf.mjs +9 -0
- package/dist/function/asyncNoop.d.mts +12 -0
- package/dist/function/asyncNoop.d.ts +12 -0
- package/dist/function/asyncNoop.mjs +3 -0
- package/dist/function/index.d.mts +1 -0
- package/dist/function/index.d.ts +1 -0
- package/dist/function/index.js +2 -1
- package/dist/function/index.mjs +1 -0
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +5 -2
- package/dist/index.mjs +3 -0
- package/package.json +1 -1
package/dist/compat/index.mjs
CHANGED
|
@@ -21,6 +21,7 @@ export { unionBy } from '../array/unionBy.mjs';
|
|
|
21
21
|
export { unionWith } from '../array/unionWith.mjs';
|
|
22
22
|
export { uniqWith } from '../array/uniqWith.mjs';
|
|
23
23
|
export { unzipWith } from '../array/unzipWith.mjs';
|
|
24
|
+
export { windowed } from '../array/windowed.mjs';
|
|
24
25
|
export { xor } from '../array/xor.mjs';
|
|
25
26
|
export { xorBy } from '../array/xorBy.mjs';
|
|
26
27
|
export { xorWith } from '../array/xorWith.mjs';
|
|
@@ -28,9 +29,9 @@ export { zipObject } from '../array/zipObject.mjs';
|
|
|
28
29
|
export { zipWith } from '../array/zipWith.mjs';
|
|
29
30
|
export { AbortError } from '../error/AbortError.mjs';
|
|
30
31
|
export { TimeoutError } from '../error/TimeoutError.mjs';
|
|
32
|
+
export { asyncNoop } from '../function/asyncNoop.mjs';
|
|
31
33
|
export { identity } from '../function/identity.mjs';
|
|
32
34
|
export { memoize } from '../function/memoize.mjs';
|
|
33
|
-
export { negate } from '../function/negate.mjs';
|
|
34
35
|
export { noop } from '../function/noop.mjs';
|
|
35
36
|
export { once } from '../function/once.mjs';
|
|
36
37
|
export { partial } from '../function/partial.mjs';
|
|
@@ -50,7 +51,6 @@ export { omitBy } from '../object/omitBy.mjs';
|
|
|
50
51
|
export { pickBy } from '../object/pickBy.mjs';
|
|
51
52
|
export { toMerged } from '../object/toMerged.mjs';
|
|
52
53
|
export { isBlob } from '../predicate/isBlob.mjs';
|
|
53
|
-
export { isBuffer } from '../predicate/isBuffer.mjs';
|
|
54
54
|
export { isEqual } from '../predicate/isEqual.mjs';
|
|
55
55
|
export { eq } from './util/eq.mjs';
|
|
56
56
|
export { isFile } from '../predicate/isFile.mjs';
|
|
@@ -100,6 +100,9 @@ export { map } from './array/map.mjs';
|
|
|
100
100
|
export { nth } from './array/nth.mjs';
|
|
101
101
|
export { orderBy } from './array/orderBy.mjs';
|
|
102
102
|
export { pull } from './array/pull.mjs';
|
|
103
|
+
export { pullAll } from './array/pullAll.mjs';
|
|
104
|
+
export { remove } from './array/remove.mjs';
|
|
105
|
+
export { reverse } from './array/reverse.mjs';
|
|
103
106
|
export { sample } from './array/sample.mjs';
|
|
104
107
|
export { size } from './array/size.mjs';
|
|
105
108
|
export { slice } from './array/slice.mjs';
|
|
@@ -130,6 +133,7 @@ export { delay } from './function/delay.mjs';
|
|
|
130
133
|
export { flip } from './function/flip.mjs';
|
|
131
134
|
export { flow } from './function/flow.mjs';
|
|
132
135
|
export { flowRight } from './function/flowRight.mjs';
|
|
136
|
+
export { negate } from './function/negate.mjs';
|
|
133
137
|
export { nthArg } from './function/nthArg.mjs';
|
|
134
138
|
export { rearg } from './function/rearg.mjs';
|
|
135
139
|
export { rest } from './function/rest.mjs';
|
|
@@ -147,6 +151,7 @@ export { random } from './math/random.mjs';
|
|
|
147
151
|
export { range } from './math/range.mjs';
|
|
148
152
|
export { rangeRight } from './math/rangeRight.mjs';
|
|
149
153
|
export { round } from './math/round.mjs';
|
|
154
|
+
export { subtract } from './math/subtract.mjs';
|
|
150
155
|
export { sum } from './math/sum.mjs';
|
|
151
156
|
export { sumBy } from './math/sumBy.mjs';
|
|
152
157
|
export { assignIn, assignIn as extend } from './object/assignIn.mjs';
|
|
@@ -179,6 +184,7 @@ export { isArrayBuffer } from './predicate/isArrayBuffer.mjs';
|
|
|
179
184
|
export { isArrayLike } from './predicate/isArrayLike.mjs';
|
|
180
185
|
export { isArrayLikeObject } from './predicate/isArrayLikeObject.mjs';
|
|
181
186
|
export { isBoolean } from './predicate/isBoolean.mjs';
|
|
187
|
+
export { isBuffer } from './predicate/isBuffer.mjs';
|
|
182
188
|
export { isDate } from './predicate/isDate.mjs';
|
|
183
189
|
export { isElement } from './predicate/isElement.mjs';
|
|
184
190
|
export { isEmpty } from './predicate/isEmpty.mjs';
|
|
@@ -238,6 +244,7 @@ export { iteratee } from './util/iteratee.mjs';
|
|
|
238
244
|
export { lt } from './util/lt.mjs';
|
|
239
245
|
export { lte } from './util/lte.mjs';
|
|
240
246
|
export { method } from './util/method.mjs';
|
|
247
|
+
export { methodOf } from './util/methodOf.mjs';
|
|
241
248
|
export { now } from './util/now.mjs';
|
|
242
249
|
export { stubArray } from './util/stubArray.mjs';
|
|
243
250
|
export { stubFalse } from './util/stubFalse.mjs';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Subtracts one number from another.
|
|
3
|
+
*
|
|
4
|
+
* If either of the numbers is `NaN`, the function returns `NaN`.
|
|
5
|
+
*
|
|
6
|
+
* @param {number} value The first number. (minuend)
|
|
7
|
+
* @param {number} other The second number.(subtrahend)
|
|
8
|
+
* @returns {number} The difference of the two numbers, or `NaN` if any input is `NaN`.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* subtract(6, 3); // => 3
|
|
12
|
+
* subtract(6, NaN); // => NaN
|
|
13
|
+
* subtract(NaN, 3); // => NaN
|
|
14
|
+
*/
|
|
15
|
+
declare function subtract(value: number, other: number): number;
|
|
16
|
+
|
|
17
|
+
export { subtract };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Subtracts one number from another.
|
|
3
|
+
*
|
|
4
|
+
* If either of the numbers is `NaN`, the function returns `NaN`.
|
|
5
|
+
*
|
|
6
|
+
* @param {number} value The first number. (minuend)
|
|
7
|
+
* @param {number} other The second number.(subtrahend)
|
|
8
|
+
* @returns {number} The difference of the two numbers, or `NaN` if any input is `NaN`.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* subtract(6, 3); // => 3
|
|
12
|
+
* subtract(6, NaN); // => NaN
|
|
13
|
+
* subtract(NaN, 3); // => NaN
|
|
14
|
+
*/
|
|
15
|
+
declare function subtract(value: number, other: number): number;
|
|
16
|
+
|
|
17
|
+
export { subtract };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { cloneDeep } from './cloneDeep.mjs';
|
|
2
2
|
import { clone } from '../../object/clone.mjs';
|
|
3
|
+
import { isPrimitive } from '../../predicate/isPrimitive.mjs';
|
|
3
4
|
import { getSymbols } from '../_internal/getSymbols.mjs';
|
|
4
5
|
import { isArguments } from '../predicate/isArguments.mjs';
|
|
5
6
|
import { isObjectLike } from '../predicate/isObjectLike.mjs';
|
|
@@ -12,11 +13,14 @@ function mergeWith(object, ...otherArgs) {
|
|
|
12
13
|
let result = object;
|
|
13
14
|
for (let i = 0; i < sources.length; i++) {
|
|
14
15
|
const source = sources[i];
|
|
15
|
-
result = mergeWithDeep(
|
|
16
|
+
result = mergeWithDeep(result, source, merge, new Map());
|
|
16
17
|
}
|
|
17
18
|
return result;
|
|
18
19
|
}
|
|
19
20
|
function mergeWithDeep(target, source, merge, stack) {
|
|
21
|
+
if (isPrimitive(target)) {
|
|
22
|
+
target = Object(target);
|
|
23
|
+
}
|
|
20
24
|
if (source == null || typeof source !== 'object') {
|
|
21
25
|
return target;
|
|
22
26
|
}
|
|
@@ -45,7 +49,7 @@ function mergeWithDeep(target, source, merge, stack) {
|
|
|
45
49
|
sourceValue = cloneDeep(sourceValue);
|
|
46
50
|
}
|
|
47
51
|
if (Array.isArray(sourceValue)) {
|
|
48
|
-
if (typeof targetValue === 'object') {
|
|
52
|
+
if (typeof targetValue === 'object' && targetValue != null) {
|
|
49
53
|
const cloned = [];
|
|
50
54
|
const targetKeys = Reflect.ownKeys(targetValue);
|
|
51
55
|
for (let i = 0; i < targetKeys.length; i++) {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks if the given value is a Buffer instance.
|
|
3
|
+
*
|
|
4
|
+
* This function tests whether the provided value is an instance of Buffer.
|
|
5
|
+
* It returns `true` if the value is a Buffer, and `false` otherwise.
|
|
6
|
+
*
|
|
7
|
+
* This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `Buffer`.
|
|
8
|
+
*
|
|
9
|
+
* @param {unknown} x - The value to check if it is a Buffer.
|
|
10
|
+
* @returns {boolean} Returns `true` if `x` is a Buffer, else `false`.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* const buffer = Buffer.from("test");
|
|
14
|
+
* console.log(isBuffer(buffer)); // true
|
|
15
|
+
*
|
|
16
|
+
* const notBuffer = "not a buffer";
|
|
17
|
+
* console.log(isBuffer(notBuffer)); // false
|
|
18
|
+
*/
|
|
19
|
+
declare function isBuffer(x?: unknown): boolean;
|
|
20
|
+
|
|
21
|
+
export { isBuffer };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks if the given value is a Buffer instance.
|
|
3
|
+
*
|
|
4
|
+
* This function tests whether the provided value is an instance of Buffer.
|
|
5
|
+
* It returns `true` if the value is a Buffer, and `false` otherwise.
|
|
6
|
+
*
|
|
7
|
+
* This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `Buffer`.
|
|
8
|
+
*
|
|
9
|
+
* @param {unknown} x - The value to check if it is a Buffer.
|
|
10
|
+
* @returns {boolean} Returns `true` if `x` is a Buffer, else `false`.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* const buffer = Buffer.from("test");
|
|
14
|
+
* console.log(isBuffer(buffer)); // true
|
|
15
|
+
*
|
|
16
|
+
* const notBuffer = "not a buffer";
|
|
17
|
+
* console.log(isBuffer(notBuffer)); // false
|
|
18
|
+
*/
|
|
19
|
+
declare function isBuffer(x?: unknown): boolean;
|
|
20
|
+
|
|
21
|
+
export { isBuffer };
|
|
@@ -13,10 +13,7 @@ function isMatch(target, source) {
|
|
|
13
13
|
}
|
|
14
14
|
const keys = Object.keys(source);
|
|
15
15
|
if (target == null) {
|
|
16
|
-
|
|
17
|
-
return true;
|
|
18
|
-
}
|
|
19
|
-
return false;
|
|
16
|
+
return keys.length === 0;
|
|
20
17
|
}
|
|
21
18
|
if (Array.isArray(source)) {
|
|
22
19
|
return isArrayMatch(target, source);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates a function that invokes the method at a given path of `object` with the provided arguments.
|
|
3
|
+
*
|
|
4
|
+
* @param {object} object - The object to query.
|
|
5
|
+
* @param {...any} args - The arguments to invoke the method with.
|
|
6
|
+
* @returns {(path: PropertyKey | PropertyKey[]) => any} - Returns a new function that takes a path and invokes the method at `path` with `args`.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* const object = {
|
|
10
|
+
* a: {
|
|
11
|
+
* b: function (x, y) {
|
|
12
|
+
* return x + y;
|
|
13
|
+
* }
|
|
14
|
+
* }
|
|
15
|
+
* };
|
|
16
|
+
*
|
|
17
|
+
* const add = methodOf(object, 1, 2);
|
|
18
|
+
* console.log(add('a.b')); // => 3
|
|
19
|
+
*/
|
|
20
|
+
declare function methodOf(object: object, ...args: any[]): (path: PropertyKey | PropertyKey[]) => any;
|
|
21
|
+
|
|
22
|
+
export { methodOf };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates a function that invokes the method at a given path of `object` with the provided arguments.
|
|
3
|
+
*
|
|
4
|
+
* @param {object} object - The object to query.
|
|
5
|
+
* @param {...any} args - The arguments to invoke the method with.
|
|
6
|
+
* @returns {(path: PropertyKey | PropertyKey[]) => any} - Returns a new function that takes a path and invokes the method at `path` with `args`.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* const object = {
|
|
10
|
+
* a: {
|
|
11
|
+
* b: function (x, y) {
|
|
12
|
+
* return x + y;
|
|
13
|
+
* }
|
|
14
|
+
* }
|
|
15
|
+
* };
|
|
16
|
+
*
|
|
17
|
+
* const add = methodOf(object, 1, 2);
|
|
18
|
+
* console.log(add('a.b')); // => 3
|
|
19
|
+
*/
|
|
20
|
+
declare function methodOf(object: object, ...args: any[]): (path: PropertyKey | PropertyKey[]) => any;
|
|
21
|
+
|
|
22
|
+
export { methodOf };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An asynchronous no-operation function that does nothing.
|
|
3
|
+
* This can be used as a placeholder or default function.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* asyncNoop(); // Does nothing
|
|
7
|
+
*
|
|
8
|
+
* @returns {Promise<void>} This function returns a Promise that resolves to undefined.
|
|
9
|
+
*/
|
|
10
|
+
declare function asyncNoop(): Promise<void>;
|
|
11
|
+
|
|
12
|
+
export { asyncNoop };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An asynchronous no-operation function that does nothing.
|
|
3
|
+
* This can be used as a placeholder or default function.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* asyncNoop(); // Does nothing
|
|
7
|
+
*
|
|
8
|
+
* @returns {Promise<void>} This function returns a Promise that resolves to undefined.
|
|
9
|
+
*/
|
|
10
|
+
declare function asyncNoop(): Promise<void>;
|
|
11
|
+
|
|
12
|
+
export { asyncNoop };
|
package/dist/function/index.d.ts
CHANGED
package/dist/function/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const unary = require('../_chunk/unary-
|
|
5
|
+
const unary = require('../_chunk/unary-B6qG7C.js');
|
|
6
6
|
const noop = require('../_chunk/noop-2IwLUk.js');
|
|
7
7
|
|
|
8
8
|
function before(n, func) {
|
|
@@ -87,6 +87,7 @@ function throttle(func, throttleMs, { signal, edges = ['leading', 'trailing'] }
|
|
|
87
87
|
|
|
88
88
|
exports.after = unary.after;
|
|
89
89
|
exports.ary = unary.ary;
|
|
90
|
+
exports.asyncNoop = unary.asyncNoop;
|
|
90
91
|
exports.debounce = unary.debounce;
|
|
91
92
|
exports.flow = unary.flow;
|
|
92
93
|
exports.flowRight = unary.flowRight;
|
package/dist/function/index.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -31,6 +31,7 @@ export { orderBy } from './array/orderBy.mjs';
|
|
|
31
31
|
export { partition } from './array/partition.mjs';
|
|
32
32
|
export { pull } from './array/pull.mjs';
|
|
33
33
|
export { pullAt } from './array/pullAt.mjs';
|
|
34
|
+
export { remove } from './array/remove.mjs';
|
|
34
35
|
export { sample } from './array/sample.mjs';
|
|
35
36
|
export { sampleSize } from './array/sampleSize.mjs';
|
|
36
37
|
export { shuffle } from './array/shuffle.mjs';
|
|
@@ -49,6 +50,7 @@ export { uniqBy } from './array/uniqBy.mjs';
|
|
|
49
50
|
export { uniqWith } from './array/uniqWith.mjs';
|
|
50
51
|
export { unzip } from './array/unzip.mjs';
|
|
51
52
|
export { unzipWith } from './array/unzipWith.mjs';
|
|
53
|
+
export { windowed } from './array/windowed.mjs';
|
|
52
54
|
export { without } from './array/without.mjs';
|
|
53
55
|
export { xor } from './array/xor.mjs';
|
|
54
56
|
export { xorBy } from './array/xorBy.mjs';
|
|
@@ -60,6 +62,7 @@ export { AbortError } from './error/AbortError.mjs';
|
|
|
60
62
|
export { TimeoutError } from './error/TimeoutError.mjs';
|
|
61
63
|
export { after } from './function/after.mjs';
|
|
62
64
|
export { ary } from './function/ary.mjs';
|
|
65
|
+
export { asyncNoop } from './function/asyncNoop.mjs';
|
|
63
66
|
export { before } from './function/before.mjs';
|
|
64
67
|
export { curry } from './function/curry.mjs';
|
|
65
68
|
export { curryRight } from './function/curryRight.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ export { orderBy } from './array/orderBy.js';
|
|
|
31
31
|
export { partition } from './array/partition.js';
|
|
32
32
|
export { pull } from './array/pull.js';
|
|
33
33
|
export { pullAt } from './array/pullAt.js';
|
|
34
|
+
export { remove } from './array/remove.js';
|
|
34
35
|
export { sample } from './array/sample.js';
|
|
35
36
|
export { sampleSize } from './array/sampleSize.js';
|
|
36
37
|
export { shuffle } from './array/shuffle.js';
|
|
@@ -49,6 +50,7 @@ export { uniqBy } from './array/uniqBy.js';
|
|
|
49
50
|
export { uniqWith } from './array/uniqWith.js';
|
|
50
51
|
export { unzip } from './array/unzip.js';
|
|
51
52
|
export { unzipWith } from './array/unzipWith.js';
|
|
53
|
+
export { windowed } from './array/windowed.js';
|
|
52
54
|
export { without } from './array/without.js';
|
|
53
55
|
export { xor } from './array/xor.js';
|
|
54
56
|
export { xorBy } from './array/xorBy.js';
|
|
@@ -60,6 +62,7 @@ export { AbortError } from './error/AbortError.js';
|
|
|
60
62
|
export { TimeoutError } from './error/TimeoutError.js';
|
|
61
63
|
export { after } from './function/after.js';
|
|
62
64
|
export { ary } from './function/ary.js';
|
|
65
|
+
export { asyncNoop } from './function/asyncNoop.js';
|
|
63
66
|
export { before } from './function/before.js';
|
|
64
67
|
export { curry } from './function/curry.js';
|
|
65
68
|
export { curryRight } from './function/curryRight.js';
|
package/dist/index.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const zipWith = require('./_chunk/zipWith-
|
|
5
|
+
const zipWith = require('./_chunk/zipWith-Bdyzuy.js');
|
|
6
6
|
const array_index = require('./array/index.js');
|
|
7
7
|
const promise_index = require('./_chunk/index-BGZDR9.js');
|
|
8
|
-
const unary = require('./_chunk/unary-
|
|
8
|
+
const unary = require('./_chunk/unary-B6qG7C.js');
|
|
9
9
|
const function_index = require('./function/index.js');
|
|
10
10
|
const noop = require('./_chunk/noop-2IwLUk.js');
|
|
11
11
|
const range = require('./_chunk/range-HnEIT7.js');
|
|
@@ -54,6 +54,7 @@ exports.minBy = zipWith.minBy;
|
|
|
54
54
|
exports.partition = zipWith.partition;
|
|
55
55
|
exports.pull = zipWith.pull;
|
|
56
56
|
exports.pullAt = zipWith.pullAt;
|
|
57
|
+
exports.remove = zipWith.remove;
|
|
57
58
|
exports.sample = zipWith.sample;
|
|
58
59
|
exports.sampleSize = zipWith.sampleSize;
|
|
59
60
|
exports.shuffle = zipWith.shuffle;
|
|
@@ -70,6 +71,7 @@ exports.uniqBy = zipWith.uniqBy;
|
|
|
70
71
|
exports.uniqWith = zipWith.uniqWith;
|
|
71
72
|
exports.unzip = zipWith.unzip;
|
|
72
73
|
exports.unzipWith = zipWith.unzipWith;
|
|
74
|
+
exports.windowed = zipWith.windowed;
|
|
73
75
|
exports.without = zipWith.without;
|
|
74
76
|
exports.xor = zipWith.xor;
|
|
75
77
|
exports.xorBy = zipWith.xorBy;
|
|
@@ -87,6 +89,7 @@ exports.timeout = promise_index.timeout;
|
|
|
87
89
|
exports.withTimeout = promise_index.withTimeout;
|
|
88
90
|
exports.after = unary.after;
|
|
89
91
|
exports.ary = unary.ary;
|
|
92
|
+
exports.asyncNoop = unary.asyncNoop;
|
|
90
93
|
exports.debounce = unary.debounce;
|
|
91
94
|
exports.flow = unary.flow;
|
|
92
95
|
exports.flowRight = unary.flowRight;
|
package/dist/index.mjs
CHANGED
|
@@ -31,6 +31,7 @@ export { orderBy } from './array/orderBy.mjs';
|
|
|
31
31
|
export { partition } from './array/partition.mjs';
|
|
32
32
|
export { pull } from './array/pull.mjs';
|
|
33
33
|
export { pullAt } from './array/pullAt.mjs';
|
|
34
|
+
export { remove } from './array/remove.mjs';
|
|
34
35
|
export { sample } from './array/sample.mjs';
|
|
35
36
|
export { sampleSize } from './array/sampleSize.mjs';
|
|
36
37
|
export { shuffle } from './array/shuffle.mjs';
|
|
@@ -49,6 +50,7 @@ export { uniqBy } from './array/uniqBy.mjs';
|
|
|
49
50
|
export { uniqWith } from './array/uniqWith.mjs';
|
|
50
51
|
export { unzip } from './array/unzip.mjs';
|
|
51
52
|
export { unzipWith } from './array/unzipWith.mjs';
|
|
53
|
+
export { windowed } from './array/windowed.mjs';
|
|
52
54
|
export { without } from './array/without.mjs';
|
|
53
55
|
export { xor } from './array/xor.mjs';
|
|
54
56
|
export { xorBy } from './array/xorBy.mjs';
|
|
@@ -60,6 +62,7 @@ export { AbortError } from './error/AbortError.mjs';
|
|
|
60
62
|
export { TimeoutError } from './error/TimeoutError.mjs';
|
|
61
63
|
export { after } from './function/after.mjs';
|
|
62
64
|
export { ary } from './function/ary.mjs';
|
|
65
|
+
export { asyncNoop } from './function/asyncNoop.mjs';
|
|
63
66
|
export { before } from './function/before.mjs';
|
|
64
67
|
export { curry } from './function/curry.mjs';
|
|
65
68
|
export { curryRight } from './function/curryRight.mjs';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "es-toolkit",
|
|
3
3
|
"description": "A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.31.0-dev.989+32a18382",
|
|
5
5
|
"homepage": "https://es-toolkit.slash.page",
|
|
6
6
|
"bugs": "https://github.com/toss/es-toolkit/issues",
|
|
7
7
|
"repository": {
|