is-natural.js 235 B

12345678910
  1. "use strict";
  2. module.exports = function (t, a) {
  3. a(t(2), true, "Number");
  4. a(t(-2), false, "Negative");
  5. a(t(2.34), false, "Float");
  6. a(t("23"), false, "Not numeric");
  7. a(t(NaN), false, "NaN");
  8. a(t(Infinity), false, "Infinity");
  9. };