In [undefined,undefined] .map (Number.call, Number), what do the last two parameters mean?

Why the return value is [0pm 1pm 2pm 3pm.] What about this format?

Jul.19,2021

Array.prototype.map takes the first argument to the callback function, and the second argument to the callback function's th value.

so the original code is equivalent to

[undefined, undefined].map((element, index) => Number.call(Number, index))

that is, each element is Number (index)

Menu