Or when will the function be retained? Can we discuss the question of Programming style?
Arrowhead function is a small function with only a few words in its abbreviated part.
Pay attention to its side effects when using it:
In function body
thisAn object is an object that is defined, not used.
It cannot be used as a constructor, that is, it cannot be used
newCommand, otherwise an error will be thrown.
argumentsObject that does not exist in the function body. If you want to use it, you can use it.
yieldCommand, therefore arrow functions cannot be used as
Especially the first point, we must pay attention to using arrow function in array iteration function.
thisThe change of.