Skip to content

isInt

Determine if a value is an int

43 bytes

Usage

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

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