UNPKG

@ts-for-gir/lib

Version:

Typescript .d.ts generator from GIR for gjs

9 lines (8 loc) 241 B
/** * Checking whether a string is numeric * @param str The string to check * @returns Whether the string is numeric or not */ export const isNumeric = (str: string): boolean => { return !Number.isNaN(Number(str) - parseFloat(str)); };