1
0

compact.js 368 B

1234567891011121314151617
  1. 'use strict';
  2. module.exports = {
  3. __generic: function (t, a) {
  4. a(t.call(this).length, 3);
  5. },
  6. "": function (t, a) {
  7. var o, x, y, z;
  8. o = {};
  9. x = [0, 1, "", null, o, false, undefined, true];
  10. y = x.slice(0);
  11. a.not(z = t.call(x), x, "Returns different object");
  12. a.deep(x, y, "Origin not changed");
  13. a.deep(z, [0, 1, "", o, false, true], "Result");
  14. }
  15. };