Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter 12: toposort, copy for result.finished? #220

Open
3vinicius opened this issue Aug 21, 2023 · 0 comments
Open

Chapter 12: toposort, copy for result.finished? #220

3vinicius opened this issue Aug 21, 2023 · 0 comments

Comments

@3vinicius
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant