shim.js 418 B

12345678910111213141516
  1. 'use strict';
  2. var is = require('../../../object/is');
  3. module.exports = function (t, a) {
  4. a(t({}), NaN, "NaN");
  5. a(t(0), 0, "Zero");
  6. a(t(Infinity), Infinity, "Infinity");
  7. a(t(-Infinity), -Infinity, "-Infinity");
  8. a(is(t(0.234), 0), true, "0");
  9. a(is(t(-0.234), -0), true, "-0");
  10. a(t(13.7), 13, "Positive #1");
  11. a(t(12.3), 12, "Positive #2");
  12. a(t(-12.3), -12, "Negative #1");
  13. a(t(-14.7), -14, "Negative #2");
  14. };