javascript-datastructures-algorithms
javascript-datastructures-algorithms copied to clipboard
Chapter 12: toposort, copy for result.finished?
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.