Skip to content

isFloat

Determine if a value is a float

115 bytes

Usage

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

import * as _ from 'radashi'
_.isFloat(12.233) // => true
_.isFloat(12) // => false
_.isFloat('hello') // => false