Copy an Object with the Spread Operator

Laurie Barth
InstructorLaurie Barth

Social Share Links

Tweet

Use the spread operator to copy a flat object. Note that this is a shallow copy.