From 3a1d21a9874be17bd32a2c4276c34e91f34fb5c1 Mon Sep 17 00:00:00 2001 From: rodigu Date: Mon, 18 Jan 2021 20:56:58 -0300 Subject: [PATCH] Corrected let to const --- Graphs/NodeNeighbors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Graphs/NodeNeighbors.js b/Graphs/NodeNeighbors.js index 7ab988fd1..c22b9905a 100644 --- a/Graphs/NodeNeighbors.js +++ b/Graphs/NodeNeighbors.js @@ -17,7 +17,7 @@ class Graph { nodeNeighbors (node) { // Returns an array with all of the node neighbors const neighbors = new Set() - for (let edge of this.edges) { + for (const edge of this.edges) { // Checks if they have an edge between them and if the neighbor is not // already in the neighbors array if (edge.node1 === node && !(neighbors.has(edge.node2))) {