UNPKG

@lou.codes/predicates

Version:
13 lines (12 loc) 286 B
import type { Unary } from "@lou.codes/types"; /** * Check if value passed is a safe integer. * * @category Primitives * @example * ```typescript * isSafeInteger(13); // true * isSafeInteger(10.13); // false * ``` */ export declare const isSafeInteger: Unary<number, boolean>;