Skip to content

isNumeric

Determine whether the input value is a number or a numeric string.

Usage

ts
import { isNumeric } from 'rattail'

isNumeric(123) // return true
isNumeric('456') // return true
isNumeric('rattail') // return false

Arguments

ArgTypeDefaults
valueany

Return

Type
boolean