SnipZard
Search snippets
Home
Portfolio
Contact
Spread Operator
The spread operator allows you to expand elements in an iterable (e.g., array) into individual elements.
Snippet:
const
newArray
=
[
...
oldArray
]
;
Copy Code
Example:
const
newObject
=
{
...
oldObject
}
;
Copy Code