the removeNode function implementation in the Graph data structure
MuhammadJamaluddin opened this issue · comments
the this
keyword within the callback function is bounded to the Window
object, so it throws an error.
The fix is either to use an arrow function or store the this
keyword in a variable & use it instead.