9 lines
371 B
TypeScript
Raw Normal View History

2024-05-12 11:13:54 +08:00
// @ts-nocheck
/**
*
* @param value string number
* @returns true false
*/
export function isNumeric(value: string | number): boolean {
return /^(-)?\d+(\.\d+)?$/.test(value);
}