9 lines
371 B
TypeScript
Raw Normal View History

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