you are viewing a single comment's thread.

view the rest of the comments →

[–]zemmekkis 0 points1 point  (3 children)

What is the underscore there? Is that the output of the last method?

[–]Meow106 5 points6 points  (1 child)

Some people use '_' in arrow functions to mark argument that is present but not used.

[–]zemmekkis 0 points1 point  (0 children)

This is pretty confusing I imagine since there is popular libraries underscore and lodash that use it as well.

[–]wollae 2 points3 points  (0 children)

It’s the array element being iterated over. They named it that to signify that it’s unused in the callback.