Skip to content

isNumber

Determine if a value is a number

81 bytes

Usage

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

import * as _ from 'radashi'
_.isNumber('hello') // => false
_.isNumber(['hello']) // => false
_.isNumber(12) // => true