Closed raq929 closed 7 years ago
It creates confusion, imho. Developers end up thinking that the parameter array in the implementation of forEach is the same as the variable array that you are passing to forEach.
array
I recommend const testArray, or some such.
const testArray
It creates confusion, imho. Developers end up thinking that the parameter
array
in the implementation of forEach is the same as the variablearray
that you are passing to forEach.