Skip to main content
Version: 1.0.0

isNumeric

With this method, you can check whether your variable is completely a numeric or not

Params

isNumeric(input);
  • input → The data we want to check is numerical or not

Returns

true | false
  • Boolean → If the input is a numerical, it returns true and if the input is not a numerical, it returns false.

Usage

isNumeric("1234567890"); //true

isNumeric("00"); //true

isNumeric("12345e67890"); //false

isNumeric("dsfsdsdv"); //false

isNumeric(324); //true