UNPKG

everyutil

Version:

A comprehensive library of lightweight, reusable utility functions for JavaScript and TypeScript, designed to streamline common programming tasks such as string manipulation, array processing, date handling, and more.

8 lines (7 loc) 260 B
/** * Returns the integer if n is an integer, otherwise returns null. * @author @dailker * @param {number} n - The number to check. * @returns {number|null} The integer value or null. */ export declare function intOrNull(n: number): number | null;