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 import _
_ from 'radashi'
import _
_.function isFloat(value: any): value is numberexport isFloat
Return true if the given value is a number that is not an integer.
isFloat(12.233) // => trueimport _
_.function isFloat(value: any): value is numberexport isFloat
Return true if the given value is a number that is not an integer.
isFloat(12) // => falseimport _
_.function isFloat(value: any): value is numberexport isFloat
Return true if the given value is a number that is not an integer.
isFloat('hello') // => false