is-number-value.js 407 B

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