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:
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:
DeepCode's analysis on #7dec60 found:
Top issues
👉 View analysis in DeepCode’s Dashboard | Configure the bot