is-value.js 254 B

1234567891011121314
  1. "use strict";
  2. module.exports = function (t, a) {
  3. a(t(), false);
  4. a(t(undefined), false);
  5. a(t(null), false);
  6. a(t(NaN), true);
  7. a(t(0), true);
  8. a(t(false), true);
  9. a(t("null"), true);
  10. a(t(""), true);
  11. a(t({}), true);
  12. a(t(Object.prototype), true);
  13. };