Last updated
Was this helpful?
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 ( )
...obj only spreads , 👉 .
can be used to assign default values instead of using .
spread operator (...)
can be used in an .
"spreads out" an into array elements or function arguments.
punctuators used:
[...iterable], {...obj}, f(...iterable).