UNPKG

@gecut/utilities

Version:

The ultimate utility toolkit from Gecut Company, crafted with TypeScript for optimal speed and efficiency. Designed to boost productivity with a suite of fast and optimized tools.

8 lines (7 loc) 496 B
import type {Nullable} from '@gecut/types/type-helper.js'; export declare const isNumber: (value: unknown) => boolean; export declare const sanitizeNumber: <T extends Nullable<number>>(data: T) => NonNullable<T>; export declare const clamp: (min: number, current: number, max: number) => number; export declare const randomNumber: (max: number, min?: number) => number; export declare const randomFloor: (max: number, min?: number, fixed?: number) => number; //# sourceMappingURL=number.d.ts.map