File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ class Graph {
7474 return {
7575 to ( ...destinations ) {
7676 if ( from ) {
77- destinations . forEach ( destination => {
77+ destinations . forEach ( ( destination ) => {
7878 const target = vertices . get ( destination ) ;
7979 if ( target ) from . link ( target ) ;
8080 } ) ;
Original file line number Diff line number Diff line change 11'use strict' ;
22
3- const intersection = ( s1 , s2 ) => new Set ( [ ...s1 ] . filter ( v => s2 . has ( v ) ) ) ;
3+ const intersection = ( s1 , s2 ) => new Set ( [ ...s1 ] . filter ( ( v ) => s2 . has ( v ) ) ) ;
44
55class Vertex {
66 constructor ( graph , data ) {
@@ -81,7 +81,7 @@ class Graph {
8181 link ( from ) {
8282 return {
8383 to ( ...destinations ) {
84- destinations . forEach ( target => {
84+ destinations . forEach ( ( target ) => {
8585 if ( target ) from . link ( target ) ;
8686 } ) ;
8787 }
You can’t perform that action at this time.
0 commit comments