es-toolkit 1.26.1-dev.862 → 1.26.1-dev.863

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.
@@ -6,7 +6,6 @@
6
6
  *
7
7
  * @example
8
8
  * const func = iteratee();
9
- *
10
9
  * [{ a: 1 }, { a: 2 }, { a: 3 }].map(func) // => [{ a: 1 }, { a: 2 }, { a: 3 }]
11
10
  */
12
11
  declare function iteratee(value?: null): <T>(value: T) => T;
@@ -19,7 +18,6 @@ declare function iteratee(value?: null): <T>(value: T) => T;
19
18
  *
20
19
  * @example
21
20
  * const func = iteratee((object) => object.a);
22
- *
23
21
  * [{ a: 1 }, { a: 2 }, { a: 3 }].map(func) // => [1, 2, 3]
24
22
  */
25
23
  declare function iteratee<F extends (...args: any[]) => unknown>(func: F): F;
@@ -33,8 +31,13 @@ declare function iteratee<F extends (...args: any[]) => unknown>(func: F): F;
33
31
  *
34
32
  * @example
35
33
  * const func = iteratee('a');
36
- *
37
34
  * [{ a: 1 }, { a: 2 }, { a: 3 }].map(func) // => [1, 2, 3]
35
+ *
36
+ * const func = iteratee({ a: 1 });
37
+ * [{ a: 1 }, { a: 2 }, { a: 3 }].find(func) // => { a: 1 }
38
+ *
39
+ * const func = iteratee(['a', 1]);
40
+ * [{ a: 1 }, { a: 2 }, { a: 3 }].find(func) // => { a: 1 }
38
41
  */
39
42
  declare function iteratee(value: symbol | number | string | object): (...args: any[]) => any;
40
43
 
@@ -6,7 +6,6 @@
6
6
  *
7
7
  * @example
8
8
  * const func = iteratee();
9
- *
10
9
  * [{ a: 1 }, { a: 2 }, { a: 3 }].map(func) // => [{ a: 1 }, { a: 2 }, { a: 3 }]
11
10
  */
12
11
  declare function iteratee(value?: null): <T>(value: T) => T;
@@ -19,7 +18,6 @@ declare function iteratee(value?: null): <T>(value: T) => T;
19
18
  *
20
19
  * @example
21
20
  * const func = iteratee((object) => object.a);
22
- *
23
21
  * [{ a: 1 }, { a: 2 }, { a: 3 }].map(func) // => [1, 2, 3]
24
22
  */
25
23
  declare function iteratee<F extends (...args: any[]) => unknown>(func: F): F;
@@ -33,8 +31,13 @@ declare function iteratee<F extends (...args: any[]) => unknown>(func: F): F;
33
31
  *
34
32
  * @example
35
33
  * const func = iteratee('a');
36
- *
37
34
  * [{ a: 1 }, { a: 2 }, { a: 3 }].map(func) // => [1, 2, 3]
35
+ *
36
+ * const func = iteratee({ a: 1 });
37
+ * [{ a: 1 }, { a: 2 }, { a: 3 }].find(func) // => { a: 1 }
38
+ *
39
+ * const func = iteratee(['a', 1]);
40
+ * [{ a: 1 }, { a: 2 }, { a: 3 }].find(func) // => { a: 1 }
38
41
  */
39
42
  declare function iteratee(value: symbol | number | string | object): (...args: any[]) => any;
40
43
 
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.26.1-dev.862+0b8df186",
4
+ "version": "1.26.1-dev.863+b648c2c4",
5
5
  "homepage": "https://es-toolkit.slash.page",
6
6
  "bugs": "https://github.com/toss/es-toolkit/issues",
7
7
  "repository": {