Closed GeinerGV closed 4 years ago
Ooops, that is right. I was thinking that Array was also an Object (which is true), but doing Object.assign
would replace the target Array since the target and source share the same indexes (0,1,2,...).
Could you do a PR?
@GeinerGV Are you plannig to do a PR? If not, I will open one. Thanks!
The function doesn't always work, because stack property is an Array
a temporal solution: Change it with a forEach and push