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
import _
_
from 'radashi'
import _
_
.
function isIntString(value: any): value is string
export isIntString

Return true if the given value is a string that can be parsed as an integer.

@seehttps://radashi.js.org/reference/typed/isIntString

@example

isIntString('0') // => true
isIntString('0.1') // => false
isIntString('+1') // => false

@version12.2.0

isIntString
('12') // => true
import _
_
.
function isIntString(value: any): value is string
export isIntString

Return true if the given value is a string that can be parsed as an integer.

@seehttps://radashi.js.org/reference/typed/isIntString

@example

isIntString('0') // => true
isIntString('0.1') // => false
isIntString('+1') // => false

@version12.2.0

isIntString
('-12') // => true
import _
_
.
function isIntString(value: any): value is string
export isIntString

Return true if the given value is a string that can be parsed as an integer.

@seehttps://radashi.js.org/reference/typed/isIntString

@example

isIntString('0') // => true
isIntString('0.1') // => false
isIntString('+1') // => false

@version12.2.0

isIntString
('12.233') // => false
import _
_
.
function isIntString(value: any): value is string
export isIntString

Return true if the given value is a string that can be parsed as an integer.

@seehttps://radashi.js.org/reference/typed/isIntString

@example

isIntString('0') // => true
isIntString('0.1') // => false
isIntString('+1') // => false

@version12.2.0

isIntString
('12.0') // => false
import _
_
.
function isIntString(value: any): value is string
export isIntString

Return true if the given value is a string that can be parsed as an integer.

@seehttps://radashi.js.org/reference/typed/isIntString

@example

isIntString('0') // => true
isIntString('0.1') // => false
isIntString('+1') // => false

@version12.2.0

isIntString
('+12') // => false
import _
_
.
function isIntString(value: any): value is string
export isIntString

Return true if the given value is a string that can be parsed as an integer.

@seehttps://radashi.js.org/reference/typed/isIntString

@example

isIntString('0') // => true
isIntString('0.1') // => false
isIntString('+1') // => false

@version12.2.0

isIntString
('hello') // => false
import _
_
.
function isIntString(value: any): value is string
export isIntString

Return true if the given value is a string that can be parsed as an integer.

@seehttps://radashi.js.org/reference/typed/isIntString

@example

isIntString('0') // => true
isIntString('0.1') // => false
isIntString('+1') // => false

@version12.2.0

isIntString
(null) // => false
import _
_
.
function isIntString(value: any): value is string
export isIntString

Return true if the given value is a string that can be parsed as an integer.

@seehttps://radashi.js.org/reference/typed/isIntString

@example

isIntString('0') // => true
isIntString('0.1') // => false
isIntString('+1') // => false

@version12.2.0

isIntString
(12) // => false