Spread syntax
Widely available since 2022-07-15
The spread (...
) syntax allows an iterable, such as an array or string, to be expanded in places where zero or more arguments (for function calls) or elements (for array literals) are expected.
Learning resources on MDN
Browser support
- Chrome 60 Released on 2017-07-25
- Chrome Android 60 Released on 2017-08-01
- Edge 79 Released on 2020-01-15
- Firefox 55 Released on 2017-08-08
- Firefox for Android 55 Released on 2017-08-08
- Safari 11.1 Released on 2018-04-12
- Safari on iOS 11.3 Released on 2018-03-29
Specifications
- ECMAScript Language Specification (#prod-SpreadElement), from TC39 (Ecma International).