1×
Become a member
to unlock all features

Create egghead account to access 5000+ tutorials and resources from expert developers.

Create account
Autoplay

    Copy an Object with the Spread Operator

    javascriptJavaScript

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