Skip to content

Latest commit

 

History

History
7 lines (7 loc) · 139 Bytes

rest-operator.md

File metadata and controls

7 lines (7 loc) · 139 Bytes

Rest operator can replace arguments

function combine(...numbers) {
  return numbers;
}
combine(1, 2, 3, 4); // => [1, 2, 3, 4]