is-number.js 343 B

12345678910111213
  1. "use strict";
  2. module.exports = function (t, a) {
  3. a(t(0), true, "Zero");
  4. a(t(NaN), true, "NaN");
  5. a(t(Infinity), true, "Infinity");
  6. a(t(12), true, "Number");
  7. a(t(false), false, "Boolean");
  8. a(t(new Date()), false, "Date");
  9. a(t(new Number(2)), true, "Number object");
  10. a(t("asdfaf"), false, "String");
  11. a(t(""), false, "Empty String");
  12. };