Skip to content

isIntString

Determine if a value is an int in string form

146 bytes

Usage

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

import * as _ from 'radashi'
_.isIntString('12') // => true
_.isIntString('-12') // => true
_.isIntString('12.233') // => false
_.isIntString('12.0') // => false
_.isIntString('+12') // => false
_.isIntString('hello') // => false
_.isIntString(null) // => false
_.isIntString(12) // => false