Is number an integer - Node.js Number

Node.js examples for Number:Int

Description

Is number an integer

Demo Code


utils.isInt = function(number) {
  return parseFloat(number) === parseInt(number);
};

Related Tutorials