is-natural-number.js 302 B

123456789101112
  1. "use strict";
  2. module.exports = function (t, a) {
  3. a(t(undefined), false, "Undefined");
  4. a(t(null), true, "Null");
  5. a(t(2), true, "Number");
  6. a(t(-2), false, "Negative");
  7. a(t(2.34), false, "Float");
  8. a(t("23"), true, "Numeric string");
  9. a(t(NaN), false, "NaN");
  10. a(t(Infinity), false, "Infinity");
  11. };