33
rated 0 times
[
36]
[
3]
/ answers: 1 / hits: 173161
/ 8 Years ago, wed, september 28, 2016, 12:00:00
Googling for javascript clone object brings some really weird results, some of them are hopelessly outdated and some are just too complex, isn't it as easy as just:
let clone = {...original};
Is there anything wrong with this?
More From » ecmascript-6