output.js 238 B

123456789101112131415
  1. var _ref, _y$z;
  2. // Array destructing
  3. const result = (_ref = [0], (([x]) => x)(_ref));
  4. expect(result).toBe(0); // Object destructuring
  5. const result2 = (_y$z = {
  6. y: 1,
  7. z: 2
  8. }, (({
  9. y,
  10. z
  11. }) => y + z)(_y$z));
  12. expect(result).toBe(3);