Alain Boudard
1 min readMay 17, 2019

--

Hello,

Well, it depends on the structure of your object, you can use the spread operator for the object itself, and then check for its inner attributes, depending on their nature. If the object has no method, some people use the JSON.stringify / JSON.parse methods.

I myself use in some projects a custom method with spread operator and recursive parsing of the object.

--

--

Alain Boudard
Alain Boudard

Written by Alain Boudard

Frontend dev / downhill rider / kitesurf fan

No responses yet