Skip to content

isIntString

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

Usage

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

Installation

Terminal window
npx atmx add helper is-int-string