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 import _
_ from 'radashi'
import _
_.function isIntString(value: any): value is stringexport isIntString
Return true if the given value is a string that can be parsed as an
integer.
isIntString('12') // => trueimport _
_.function isIntString(value: any): value is stringexport isIntString
Return true if the given value is a string that can be parsed as an
integer.
isIntString('-12') // => true
import _
_.function isIntString(value: any): value is stringexport isIntString
Return true if the given value is a string that can be parsed as an
integer.
isIntString('12.233') // => falseimport _
_.function isIntString(value: any): value is stringexport isIntString
Return true if the given value is a string that can be parsed as an
integer.
isIntString('12.0') // => falseimport _
_.function isIntString(value: any): value is stringexport isIntString
Return true if the given value is a string that can be parsed as an
integer.
isIntString('+12') // => false
import _
_.function isIntString(value: any): value is stringexport isIntString
Return true if the given value is a string that can be parsed as an
integer.
isIntString('hello') // => falseimport _
_.function isIntString(value: any): value is stringexport isIntString
Return true if the given value is a string that can be parsed as an
integer.
isIntString(null) // => falseimport _
_.function isIntString(value: any): value is stringexport isIntString
Return true if the given value is a string that can be parsed as an
integer.
isIntString(12) // => false