is-time-value.js 452 B

123456789101112131415
  1. "use strict";
  2. module.exports = function (t, a) {
  3. a(t("arar"), false, "String");
  4. a(t(12), true, "Number in range");
  5. a(t(true), true, "Boolean");
  6. a(t(new Date()), true, "Date");
  7. a(t({}), false, "Plain object");
  8. a(t(NaN), false, "NaN");
  9. a(t(Infinity), false, "Infinity");
  10. a(t(8.64e17), false, "Beyond range");
  11. a(t(8.64e15), true, "Below range");
  12. a(t(-8.64e17), false, "Negative beyond range");
  13. a(t(-8.64e15), true, "Negative below range");
  14. };