February 2018
Intermediate to advanced
298 pages
8h 22m
English
A spread operator is represented by the ... token. A spread operator splits an iterable object into its individual values.
A spread operator can be placed wherever multiple function arguments or multiple elements (for array literals) are expected in code.
The spread operator is commonly used to spread the values of an iterable object into the arguments of a function. Let's take the example of an array and see how to split it into the arguments of a function.
To provide the values of an array as a function argument, you can use the ...
Read now
Unlock full access