@thi.ng/checks
Version:
Collection of 70+ type, feature & value checks
15 lines • 440 B
TypeScript
/**
* Returns true if given string contains only digits, and optionally, a sign
* prefix.
*
* @param x -
*/
export declare const isNumericInt: (x: string) => boolean;
/**
* Returns true if given string only contains an integer or floating point
* number, optionally in scientific notiation (e.g. `-123.45e-6`).
*
* @param x -
*/
export declare const isNumericFloat: (x: string) => boolean;
//# sourceMappingURL=is-numeric.d.ts.map