compact.js 369 B

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