I came across the following code:
Array.apply(null, Array(5)).map(function (_, i) {return i;});
What does _
mean in the above code? I tried replacing _
with null
but it is saying syntax error. However undefined
would work. I am new to Javascript. So any comments would appreciated! Thanks!