Question whether a variable is type_integer

type:integer?($variable) : BOOL

type:integer?(1)        #=> true
type:integer?(-1)       #=> true
type:integer?(0)        #=> true
type:integer?(null)     #=> false
type:integer?(0.0)      #=> false
type:integer?(10.0)     #=> false
type:integer?('10')     #=> false
type:integer?(10.2)     #=> false
type:integer?('10.2')   #=> false
type:integer?(true)     #=> false
type:integer?(false)    #=> false

Copyright ©2013-2022 SunSed®. All rights reserved.