You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Is the variable
ftime
supposed to be used as a copy forresult.finished
in toposort?What happens is that when I simply assign
ftimes = result.finished
, the value offinished
is changed. So, I decided to useObject.assign({}, result.finished)
, which creates a copy of the object.The text was updated successfully, but these errors were encountered: