2018-03-24 16:22:20 +05:30

5 lines
91 B
JavaScript

function t([,,a] = [1,2,3]) { return a }
expect(t()).toBe(3);
expect(t([4,5,6])).toBe(6);