Answers for "node js if content is a number"

6

js is number

Number.isInteger(value)
Posted by: Guest on November-27-2020
-1

js check if string or int

var myString     =  "abc123";
var otherString  =  "123";
/* isInterger() checks if an value repersents an int  */

Number.isInteger(myString);    //returns false
Number.isInteger(otherString); //returns true
Posted by: Guest on November-25-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language