DEV Community

Discussion on: Creating Graphs With JavaScript

Collapse
 
oudia15 profile image
Oumar diarra

Great article!
As Spezifant pointed out the getFlavor() needs a little adjustment.
Here is the solution i had:

//body of getFlavor()
return this.iceCreamFlavorNodes.find(flavorNode => flavorNode.flavor === flavor);
Again Thanks for the Article