In this case, _ is just a parameter of the function - one underscore is the convention used by some programmers to indicate "ignore this binding / parameter parameter".
Since JavaScript does not perform parameter checking, the parameter may be completely omitted. This "drop" identifier is most often found in other languages, but consider a case like arr.forEach (function (_, i) {..}), where _ indicates that the first parameter should not be used.
source share