View source on GitHub →
Object.isNumber(object) → Boolean
object
Object
Returns true if object is of type Number; false otherwise.
true
Number
false
Object.isNumber(0); //-> true Object.isNumber(1.2); //-> true Object.isNumber("foo"); //-> false