liquidcarrot / carrot

🥕 Evolutionary Neural Networks in JavaScript
https://liquidcarrot.io/carrot/
MIT License
293 stars 34 forks source link

Update from my typescript fork #237

Closed raimannma closed 4 years ago

ghost commented 4 years ago

DeepCode's analysis on #ec3f2c found:

Description Example fixes
No catch method for promise. This may result in an unhandled promise rejection. Occurrences: :wrench: Example fixes
Use an arrow function inside filter() instead of an anonymous function. For anonymous functions the value of 'this' may differ depending on the calling context, which often leads to unexpected errors. On contrary, the value of 'this' used in an arrow function is determined by the scope where the function is defined. Occurrences: :wrench: Example fixes
Use an arrow function inside forEach() instead of an anonymous function. For anonymous functions the value of 'this' may differ depending on the calling context, which often leads to unexpected errors. On contrary, the value of 'this' used in an arrow function is determined by the scope where the function is defined. Occurrences: :wrench: Example fixes

👉 View analysis in DeepCode’s Dashboard | Configure the bot