Quick tip for arrays in JavaScript
Diogo Spínola
811

let secondObject = Object.assign({}, firstObject

The new beauty way is:

let secondObject = {…firstObject}
Like what you read? Give Bruno Kilian a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.