WeCodeAcademy

Copy an object without changing the original

Spread the object into a new one and override the keys you want to change.

Examplejavascript
Open in editor »

More JavaScript recipes