In Javascript, ellipses ( … ) are used for two separate shorthands — rest syntax and spread syntax . Rest syntax will set the remaining elements of a collection to a defined variable.
In Javascript, ellipses ( … ) are used for two separate shorthands — rest syntax and spread syntax . Rest syntax will set the remaining elements of a collection to a defined variable.