Skip to content

isFloat

Basic usage

Pass in a value and get a boolean telling you if the value is a float.

import { isFloat } from 'radash'
isFloat(12.233) // => true
isFloat(12) // => false
isFloat('hello') // => false