is-number.js 264 B

12345678910
  1. "use strict";
  2. var objToString = Object.prototype.toString, id = objToString.call(1);
  3. module.exports = function (value) {
  4. return (
  5. typeof value === "number" ||
  6. (value instanceof Number || (typeof value === "object" && objToString.call(value) === id))
  7. );
  8. };