es-toolkit 1.17.0-dev.557 → 1.17.0-dev.559

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.
@@ -4,6 +4,12 @@
4
4
  * @template F - The type of the function to negate.
5
5
  * @param {F} func - The function to negate.
6
6
  * @returns {F} The new negated function, which negates the boolean result of `func`.
7
+ *
8
+ * @example
9
+ * const array = [1, 2, 3, 4, 5, 6];
10
+ * const isEven = (n: number) => n % 2 === 0;
11
+ * const result = array.filter(negate(isEven));
12
+ * // result will be [1, 3, 5]
7
13
  */
8
14
  declare function negate<F extends (...args: any[]) => boolean>(func: F): F;
9
15
 
@@ -4,6 +4,12 @@
4
4
  * @template F - The type of the function to negate.
5
5
  * @param {F} func - The function to negate.
6
6
  * @returns {F} The new negated function, which negates the boolean result of `func`.
7
+ *
8
+ * @example
9
+ * const array = [1, 2, 3, 4, 5, 6];
10
+ * const isEven = (n: number) => n % 2 === 0;
11
+ * const result = array.filter(negate(isEven));
12
+ * // result will be [1, 3, 5]
7
13
  */
8
14
  declare function negate<F extends (...args: any[]) => boolean>(func: F): F;
9
15
 
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.17.0-dev.557+eb8bf63a",
4
+ "version": "1.17.0-dev.559+1d15d741",
5
5
  "homepage": "https://es-toolkit.slash.page",
6
6
  "bugs": "https://github.com/toss/es-toolkit/issues",
7
7
  "repository": {