Apply
What does Array.apply
do in this method?
Array.apply(null, {length: 100}).map(Function.call, Math.random)
As you probably know, Function.prototype.apply
allows you to provide arguments to a function in the form of an array.
So calling Array.apply
(which just inherits its .apply()
method from Function's prototype)
Resources
Last updated