es-toolkit 1.16.0-dev.499 → 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.
@@ -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
 
@@ -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/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.499+f3620d76",
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": {