@utilify/core
Version:
Modern, strongly typed, and safe utility function library for JavaScript and TypeScript. Includes type checking, manipulation of arrays, objects, strings, dates, colors, numbers, regular expressions, and more. Compatible with Browser, Node.js, Deno, and B
14 lines • 475 B
TypeScript
/**
* @callback PredicateCallback
* @param {...any} args
* @returns {boolean}
*/
/**
* Negates the result of a predicate function.
* @template T
* @param {PredicateCallback} fn - The predicate function.
* @returns {(...args: Parameters<T>) => boolean} The negated function.
* @throws {TypeError} If fn is not a function.
*/
export default function not<T extends (...args: any[]) => any>(fn: T): (...args: Parameters<T>) => boolean;
//# sourceMappingURL=not.d.ts.map