javascript-datastructures-algorithms icon indicating copy to clipboard operation
javascript-datastructures-algorithms copied to clipboard

Chapter 12: toposort, copy for result.finished?

Open 3vinicius opened this issue 2 years ago • 0 comments

Is the variable ftime supposed to be used as a copy for result.finished in toposort?

What happens is that when I simply assign ftimes = result.finished, the value of finished is changed. So, I decided to use Object.assign({}, result.finished), which creates a copy of the object.

3vinicius avatar Aug 21 '23 19:08 3vinicius