es-toolkit 1.22.0-dev.710 → 1.22.0-dev.712

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.
@@ -39,7 +39,7 @@ declare function curryRight<P, R>(func: (p: P) => R): (p: P) => R;
39
39
  * Unlike `curry`, this function curries the function from right to left.
40
40
  *
41
41
  * @param {(p1: P1, p2: P2) => R} func - The function to curry.
42
- * @returns {(p1: P2) => (p2: P1) => R} A curried function.
42
+ * @returns {(p2: P2) => (p1: P1) => R} A curried function.
43
43
  *
44
44
  * @example
45
45
  * function twoArgFunc(a: number, b: number) {
@@ -49,7 +49,7 @@ declare function curryRight<P, R>(func: (p: P) => R): (p: P) => R;
49
49
  * const func = curriedTwoArgFunc(1);
50
50
  * console.log(func(2)); // [2, 1]
51
51
  */
52
- declare function curryRight<P1, P2, R>(func: (p1: P1, p2: P2) => R): (p1: P2) => (p2: P1) => R;
52
+ declare function curryRight<P1, P2, R>(func: (p1: P1, p2: P2) => R): (p2: P2) => (p1: P1) => R;
53
53
  /**
54
54
  * Curries a function, allowing it to be called with a single argument at a time and returning a new function that takes the next argument.
55
55
  * This process continues until all arguments have been provided, at which point the original function is called with all accumulated arguments.
@@ -57,7 +57,7 @@ declare function curryRight<P1, P2, R>(func: (p1: P1, p2: P2) => R): (p1: P2) =>
57
57
  * Unlike `curry`, this function curries the function from right to left.
58
58
  *
59
59
  * @param {(p1: P1, p2: P2, p3: P3) => R} func - The function to curry.
60
- * @returns {(p1: P3) => (p2: P2) => (p3: P1) => R} A curried function.
60
+ * @returns {(p3: P3) => (p2: P2) => (p1: P1) => R} A curried function.
61
61
  *
62
62
  * @example
63
63
  * function threeArgFunc(a: number, b: number, c: number) {
@@ -68,7 +68,7 @@ declare function curryRight<P1, P2, R>(func: (p1: P1, p2: P2) => R): (p1: P2) =>
68
68
  * const func2 = func(2);
69
69
  * console.log(func2(3)); // [3, 2, 1]
70
70
  */
71
- declare function curryRight<P1, P2, P3, R>(func: (p1: P1, p2: P2, p3: P3) => R): (p1: P3) => (p2: P2) => (p3: P1) => R;
71
+ declare function curryRight<P1, P2, P3, R>(func: (p1: P1, p2: P2, p3: P3) => R): (p3: P3) => (p2: P2) => (p1: P1) => R;
72
72
  /**
73
73
  * Curries a function, allowing it to be called with a single argument at a time and returning a new function that takes the next argument.
74
74
  * This process continues until all arguments have been provided, at which point the original function is called with all accumulated arguments.
@@ -76,7 +76,7 @@ declare function curryRight<P1, P2, P3, R>(func: (p1: P1, p2: P2, p3: P3) => R):
76
76
  * Unlike `curry`, this function curries the function from right to left.
77
77
  *
78
78
  * @param {(p1: P1, p2: P2, p3: P3, p4: P4) => R} func - The function to curry.
79
- * @returns {(p1: P4) => (p2: P3) => (p3: P2) => (p4: P1) => R} A curried function.
79
+ * @returns {(p4: P4) => (p3: P3) => (p2: P2) => (p1: P1) => R} A curried function.
80
80
  *
81
81
  * @example
82
82
  * function fourArgFunc(a: number, b: number, c: number, d: number) {
@@ -88,7 +88,7 @@ declare function curryRight<P1, P2, P3, R>(func: (p1: P1, p2: P2, p3: P3) => R):
88
88
  * const func3 = func2(3);
89
89
  * console.log(func3(4)); // [4, 3, 2, 1]
90
90
  */
91
- declare function curryRight<P1, P2, P3, P4, R>(func: (p1: P1, p2: P2, p3: P3, p4: P4) => R): (p1: P4) => (p2: P3) => (p3: P2) => (p4: P1) => R;
91
+ declare function curryRight<P1, P2, P3, P4, R>(func: (p1: P1, p2: P2, p3: P3, p4: P4) => R): (p4: P4) => (p3: P3) => (p2: P2) => (p1: P1) => R;
92
92
  /**
93
93
  * Curries a function, allowing it to be called with a single argument at a time and returning a new function that takes the next argument.
94
94
  * This process continues until all arguments have been provided, at which point the original function is called with all accumulated arguments.
@@ -96,7 +96,7 @@ declare function curryRight<P1, P2, P3, P4, R>(func: (p1: P1, p2: P2, p3: P3, p4
96
96
  * Unlike `curry`, this function curries the function from right to left.
97
97
  *
98
98
  * @param {(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5) => R} func - The function to curry.
99
- * @returns {(p1: P5) => (p2: P4) => (p3: P3) => (p4: P2) => (p5: P1) => R} A curried function.
99
+ * @returns {(p5: P5) => (p4: P4) => (p3: P3) => (p2: P2) => (p1: P1) => R} A curried function.
100
100
  *
101
101
  * @example
102
102
  * function fiveArgFunc(a: number, b: number, c: number, d: number, e: number) {
@@ -109,7 +109,7 @@ declare function curryRight<P1, P2, P3, P4, R>(func: (p1: P1, p2: P2, p3: P3, p4
109
109
  * const func4 = func3(4);
110
110
  * console.log(func4(5)); // [5, 4, 3, 2, 1]
111
111
  */
112
- declare function curryRight<P1, P2, P3, P4, P5, R>(func: (p1: P1, p2: P2, p3: P3, p4: P4, p5: P5) => R): (p1: P5) => (p2: P4) => (p3: P3) => (p4: P2) => (p5: P1) => R;
112
+ declare function curryRight<P1, P2, P3, P4, P5, R>(func: (p1: P1, p2: P2, p3: P3, p4: P4, p5: P5) => R): (p5: P5) => (p4: P4) => (p3: P3) => (p2: P2) => (p1: P1) => R;
113
113
  /**
114
114
  * Curries a function, allowing it to be called with a single argument at a time and returning a new function that takes the next argument.
115
115
  * This process continues until all arguments have been provided, at which point the original function is called with all accumulated arguments.
@@ -133,7 +133,7 @@ declare function curryRight<P1, P2, P3, P4, P5, R>(func: (p1: P1, p2: P2, p3: P3
133
133
  * const add25 = add10(15);
134
134
  *
135
135
  * // The parameter `a` should be given the value `5`. The function 'sum' has received all its arguments and will now return a value.
136
- * const result = add25(5);
136
+ * const result = add25(5); // 30
137
137
  */
138
138
  declare function curryRight(func: (...args: any[]) => any): (...args: any[]) => any;
139
139
 
@@ -39,7 +39,7 @@ declare function curryRight<P, R>(func: (p: P) => R): (p: P) => R;
39
39
  * Unlike `curry`, this function curries the function from right to left.
40
40
  *
41
41
  * @param {(p1: P1, p2: P2) => R} func - The function to curry.
42
- * @returns {(p1: P2) => (p2: P1) => R} A curried function.
42
+ * @returns {(p2: P2) => (p1: P1) => R} A curried function.
43
43
  *
44
44
  * @example
45
45
  * function twoArgFunc(a: number, b: number) {
@@ -49,7 +49,7 @@ declare function curryRight<P, R>(func: (p: P) => R): (p: P) => R;
49
49
  * const func = curriedTwoArgFunc(1);
50
50
  * console.log(func(2)); // [2, 1]
51
51
  */
52
- declare function curryRight<P1, P2, R>(func: (p1: P1, p2: P2) => R): (p1: P2) => (p2: P1) => R;
52
+ declare function curryRight<P1, P2, R>(func: (p1: P1, p2: P2) => R): (p2: P2) => (p1: P1) => R;
53
53
  /**
54
54
  * Curries a function, allowing it to be called with a single argument at a time and returning a new function that takes the next argument.
55
55
  * This process continues until all arguments have been provided, at which point the original function is called with all accumulated arguments.
@@ -57,7 +57,7 @@ declare function curryRight<P1, P2, R>(func: (p1: P1, p2: P2) => R): (p1: P2) =>
57
57
  * Unlike `curry`, this function curries the function from right to left.
58
58
  *
59
59
  * @param {(p1: P1, p2: P2, p3: P3) => R} func - The function to curry.
60
- * @returns {(p1: P3) => (p2: P2) => (p3: P1) => R} A curried function.
60
+ * @returns {(p3: P3) => (p2: P2) => (p1: P1) => R} A curried function.
61
61
  *
62
62
  * @example
63
63
  * function threeArgFunc(a: number, b: number, c: number) {
@@ -68,7 +68,7 @@ declare function curryRight<P1, P2, R>(func: (p1: P1, p2: P2) => R): (p1: P2) =>
68
68
  * const func2 = func(2);
69
69
  * console.log(func2(3)); // [3, 2, 1]
70
70
  */
71
- declare function curryRight<P1, P2, P3, R>(func: (p1: P1, p2: P2, p3: P3) => R): (p1: P3) => (p2: P2) => (p3: P1) => R;
71
+ declare function curryRight<P1, P2, P3, R>(func: (p1: P1, p2: P2, p3: P3) => R): (p3: P3) => (p2: P2) => (p1: P1) => R;
72
72
  /**
73
73
  * Curries a function, allowing it to be called with a single argument at a time and returning a new function that takes the next argument.
74
74
  * This process continues until all arguments have been provided, at which point the original function is called with all accumulated arguments.
@@ -76,7 +76,7 @@ declare function curryRight<P1, P2, P3, R>(func: (p1: P1, p2: P2, p3: P3) => R):
76
76
  * Unlike `curry`, this function curries the function from right to left.
77
77
  *
78
78
  * @param {(p1: P1, p2: P2, p3: P3, p4: P4) => R} func - The function to curry.
79
- * @returns {(p1: P4) => (p2: P3) => (p3: P2) => (p4: P1) => R} A curried function.
79
+ * @returns {(p4: P4) => (p3: P3) => (p2: P2) => (p1: P1) => R} A curried function.
80
80
  *
81
81
  * @example
82
82
  * function fourArgFunc(a: number, b: number, c: number, d: number) {
@@ -88,7 +88,7 @@ declare function curryRight<P1, P2, P3, R>(func: (p1: P1, p2: P2, p3: P3) => R):
88
88
  * const func3 = func2(3);
89
89
  * console.log(func3(4)); // [4, 3, 2, 1]
90
90
  */
91
- declare function curryRight<P1, P2, P3, P4, R>(func: (p1: P1, p2: P2, p3: P3, p4: P4) => R): (p1: P4) => (p2: P3) => (p3: P2) => (p4: P1) => R;
91
+ declare function curryRight<P1, P2, P3, P4, R>(func: (p1: P1, p2: P2, p3: P3, p4: P4) => R): (p4: P4) => (p3: P3) => (p2: P2) => (p1: P1) => R;
92
92
  /**
93
93
  * Curries a function, allowing it to be called with a single argument at a time and returning a new function that takes the next argument.
94
94
  * This process continues until all arguments have been provided, at which point the original function is called with all accumulated arguments.
@@ -96,7 +96,7 @@ declare function curryRight<P1, P2, P3, P4, R>(func: (p1: P1, p2: P2, p3: P3, p4
96
96
  * Unlike `curry`, this function curries the function from right to left.
97
97
  *
98
98
  * @param {(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5) => R} func - The function to curry.
99
- * @returns {(p1: P5) => (p2: P4) => (p3: P3) => (p4: P2) => (p5: P1) => R} A curried function.
99
+ * @returns {(p5: P5) => (p4: P4) => (p3: P3) => (p2: P2) => (p1: P1) => R} A curried function.
100
100
  *
101
101
  * @example
102
102
  * function fiveArgFunc(a: number, b: number, c: number, d: number, e: number) {
@@ -109,7 +109,7 @@ declare function curryRight<P1, P2, P3, P4, R>(func: (p1: P1, p2: P2, p3: P3, p4
109
109
  * const func4 = func3(4);
110
110
  * console.log(func4(5)); // [5, 4, 3, 2, 1]
111
111
  */
112
- declare function curryRight<P1, P2, P3, P4, P5, R>(func: (p1: P1, p2: P2, p3: P3, p4: P4, p5: P5) => R): (p1: P5) => (p2: P4) => (p3: P3) => (p4: P2) => (p5: P1) => R;
112
+ declare function curryRight<P1, P2, P3, P4, P5, R>(func: (p1: P1, p2: P2, p3: P3, p4: P4, p5: P5) => R): (p5: P5) => (p4: P4) => (p3: P3) => (p2: P2) => (p1: P1) => R;
113
113
  /**
114
114
  * Curries a function, allowing it to be called with a single argument at a time and returning a new function that takes the next argument.
115
115
  * This process continues until all arguments have been provided, at which point the original function is called with all accumulated arguments.
@@ -133,7 +133,7 @@ declare function curryRight<P1, P2, P3, P4, P5, R>(func: (p1: P1, p2: P2, p3: P3
133
133
  * const add25 = add10(15);
134
134
  *
135
135
  * // The parameter `a` should be given the value `5`. The function 'sum' has received all its arguments and will now return a value.
136
- * const result = add25(5);
136
+ * const result = add25(5); // 30
137
137
  */
138
138
  declare function curryRight(func: (...args: any[]) => any): (...args: any[]) => any;
139
139
 
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.22.0-dev.710+832ecc53",
4
+ "version": "1.22.0-dev.712+bc490b6e",
5
5
  "homepage": "https://es-toolkit.slash.page",
6
6
  "bugs": "https://github.com/toss/es-toolkit/issues",
7
7
  "repository": {