Files

5 lines
72 B
JavaScript

function foo(props) {
const [x, y, ...z] = props.a;
return x + y;
}