es-toolkit 1.16.0-dev.497 → 1.16.0-dev.500
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunk/{initial-DHQAoT.js → initial-Ci2bn_.js} +10 -9
- package/dist/array/at.d.mts +18 -0
- package/dist/array/at.d.ts +18 -0
- package/dist/array/at.mjs +1 -1
- package/dist/array/index.d.mts +1 -0
- package/dist/array/index.d.ts +1 -0
- package/dist/array/index.js +2 -1
- package/dist/array/index.mjs +1 -0
- package/dist/array/pullAt.d.mts +3 -6
- package/dist/array/pullAt.d.ts +3 -6
- package/dist/browser.global.js +1 -1
- package/dist/browser.global.js.map +1 -1
- package/dist/compat/index.d.mts +1 -0
- package/dist/compat/index.d.ts +1 -0
- package/dist/compat/index.js +2 -1
- package/dist/compat/index.mjs +1 -0
- package/dist/function/ary.d.mts +10 -0
- package/dist/function/ary.d.ts +10 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/dist/index.mjs +1 -0
- package/package.json +1 -1
package/dist/compat/index.d.mts
CHANGED
package/dist/compat/index.d.ts
CHANGED
package/dist/compat/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const initial = require('../_chunk/initial-
|
|
5
|
+
const initial = require('../_chunk/initial-Ci2bn_.js');
|
|
6
6
|
const promise_index = require('../_chunk/index-CoqN5B.js');
|
|
7
7
|
const function_index = require('../function/index.js');
|
|
8
8
|
const math_index = require('../math/index.js');
|
|
@@ -817,6 +817,7 @@ function min(items = []) {
|
|
|
817
817
|
return minElement;
|
|
818
818
|
}
|
|
819
819
|
|
|
820
|
+
exports.at = initial.at;
|
|
820
821
|
exports.compact = initial.compact;
|
|
821
822
|
exports.countBy = initial.countBy;
|
|
822
823
|
exports.differenceBy = initial.differenceBy;
|
package/dist/compat/index.mjs
CHANGED
package/dist/function/ary.d.mts
CHANGED
|
@@ -5,6 +5,16 @@
|
|
|
5
5
|
* @param {F} func - The function to cap arguments for.
|
|
6
6
|
* @param {number} n - The arity cap.
|
|
7
7
|
* @returns {(...args: any[]) => ReturnType<F>} Returns the new capped function.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* function fn(a: number, b: number, c: number) {
|
|
11
|
+
* return Array.from(arguments);
|
|
12
|
+
* }
|
|
13
|
+
*
|
|
14
|
+
* ary(fn, 0)(1, 2, 3) // []
|
|
15
|
+
* ary(fn, 1)(1, 2, 3) // [1]
|
|
16
|
+
* ary(fn, 2)(1, 2, 3) // [1, 2]
|
|
17
|
+
* ary(fn, 3)(1, 2, 3) // [1, 2, 3]
|
|
8
18
|
*/
|
|
9
19
|
declare function ary<F extends (...args: any[]) => any>(func: F, n: number): (...args: any[]) => ReturnType<F>;
|
|
10
20
|
|
package/dist/function/ary.d.ts
CHANGED
|
@@ -5,6 +5,16 @@
|
|
|
5
5
|
* @param {F} func - The function to cap arguments for.
|
|
6
6
|
* @param {number} n - The arity cap.
|
|
7
7
|
* @returns {(...args: any[]) => ReturnType<F>} Returns the new capped function.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* function fn(a: number, b: number, c: number) {
|
|
11
|
+
* return Array.from(arguments);
|
|
12
|
+
* }
|
|
13
|
+
*
|
|
14
|
+
* ary(fn, 0)(1, 2, 3) // []
|
|
15
|
+
* ary(fn, 1)(1, 2, 3) // [1]
|
|
16
|
+
* ary(fn, 2)(1, 2, 3) // [1, 2]
|
|
17
|
+
* ary(fn, 3)(1, 2, 3) // [1, 2, 3]
|
|
8
18
|
*/
|
|
9
19
|
declare function ary<F extends (...args: any[]) => any>(func: F, n: number): (...args: any[]) => ReturnType<F>;
|
|
10
20
|
|
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const initial = require('./_chunk/initial-
|
|
5
|
+
const initial = require('./_chunk/initial-Ci2bn_.js');
|
|
6
6
|
const array_index = require('./array/index.js');
|
|
7
7
|
const promise_index = require('./_chunk/index-CoqN5B.js');
|
|
8
8
|
const function_index = require('./function/index.js');
|
|
@@ -17,6 +17,7 @@ const string_index = require('./string/index.js');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
+
exports.at = initial.at;
|
|
20
21
|
exports.chunk = initial.chunk;
|
|
21
22
|
exports.compact = initial.compact;
|
|
22
23
|
exports.countBy = initial.countBy;
|
package/dist/index.mjs
CHANGED
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.16.0-dev.
|
|
4
|
+
"version": "1.16.0-dev.500+1890d8ff",
|
|
5
5
|
"homepage": "https://es-toolkit.slash.page",
|
|
6
6
|
"bugs": "https://github.com/toss/es-toolkit/issues",
|
|
7
7
|
"repository": {
|