2019-02-19 16:04:29 +08:00

4 lines
83 B
TypeScript

export function isNumber(value: string): boolean {
return /^\d+$/.test(value);
}