Skip to content

isNumber

Return true if the given value is a number.

Usage

isNumber(0); // => true
isNumber("0"); // => false
isNumber(NaN); // => false

Installation

Terminal window
npx atmx add helper is-number