1
0

valid-value.js 335 B

12345678910111213141516171819
  1. 'use strict';
  2. var numIsNaN = require('../../number/is-nan');
  3. module.exports = function (t, a) {
  4. var x;
  5. a(t(0), 0, "0");
  6. a(t(false), false, "false");
  7. a(t(''), '', "''");
  8. a(numIsNaN(t(NaN)), true, "NaN");
  9. a(t(x = {}), x, "{}");
  10. a.throws(function () {
  11. t();
  12. }, "Undefined");
  13. a.throws(function () {
  14. t(null);
  15. }, "null");
  16. };