Skip to content

the removeNode function implementation in the Graph data structure #28

@MuhammadJamaluddin

Description

@MuhammadJamaluddin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions