var [a1, b1, ...rest1] = array; const [a2, b2, ...rest2] = array; function a([a1, b1, ...rest1]) {} ([a1, b1, ...rest1]) => {};