Skip to content

convertsToInteger

Category: Conversion

Returns true if the input can be converted to an integer

  • Return type: Boolean
'123'.convertsToInteger()
'abc'.convertsToInteger()
true.convertsToInteger()