@monstermann/fn
Version:
A utility library for TypeScript.
28 lines • 673 B
TypeScript
//#region src/number/isNotFinite.d.ts
/**
* `isNotFinite(target)`
*
* Returns `true` if `target` is not a finite number, otherwise `false`.
*
* ```ts
* isNotFinite(Infinity); // true
* isNotFinite(-Infinity); // true
* isNotFinite(NaN); // true
* isNotFinite(42); // false
* isNotFinite(3.14); // false
* ```
*
* ```ts
* pipe(Infinity, isNotFinite()); // true
* pipe(-Infinity, isNotFinite()); // true
* pipe(NaN, isNotFinite()); // true
* pipe(42, isNotFinite()); // false
* pipe(3.14, isNotFinite()); // false
* ```
*/
declare const isNotFinite: {
(): (target: number) => boolean;
(target: number): boolean;
};
//#endregion
export { isNotFinite };