spread operator (...)
[...iterable], {...obj}, f(...iterable).
Last updated
Was this helpful?
[...iterable], {...obj}, f(...iterable).
Last updated
Was this helpful?
⟩ ⟩ ⟩ ⟩ spread
expands an in places where / are expected.
adds properties of an object to an .
spread operator () is not a true operator, it cannot be evaluated to produce a value ( table of operators)
...obj only spreads , 👉 property enumeration.
can be used to assign default values instead of using Object.assign().
spread operator (...)
can be used in an .
"spreads out" an iterable into array elements or function arguments.
punctuators used: 3 dots (...)