src code

class method Object.isNumber

Object.isNumber(object) → Boolean
  • object (Object) – The object to test.

Returns true if object is of type Number; false otherwise.

Examples
Object.isNumber(0);
//-> true
 Object.isNumber(1.2);
//-> true
 Object.isNumber("foo");
//-> false