1 parent 1546ae7 commit e1922b6Copy full SHA for e1922b6
2 files changed
JavaScript/2-insert-link-to.js
@@ -74,7 +74,7 @@ class Graph {
74
return {
75
to(...destinations) {
76
if (from) {
77
- destinations.forEach(destination => {
+ destinations.forEach((destination) => {
78
const target = vertices.get(destination);
79
if (target) from.link(target);
80
});
JavaScript/3-index.js
@@ -1,6 +1,6 @@
1
'use strict';
2
3
-const intersection = (s1, s2) => new Set([...s1].filter(v => s2.has(v)));
+const intersection = (s1, s2) => new Set([...s1].filter((v) => s2.has(v)));
4
5
class Vertex {
6
constructor(graph, data) {
@@ -81,7 +81,7 @@ class Graph {
81
link(from) {
82
83
84
- destinations.forEach(target => {
+ destinations.forEach((target) => {
85
86
87
}
0 commit comments