Answer: how does Array.prototype.slice.call() work? #answer #fix #computers
Answer: how does Array.prototype.slice.call() work? #answer #fix #computers
how does Array.prototype.slice.call() work?
I know it is used to make arguments a real array, but I don’t understand what happens when using Array.prototype.slice.call(arguments)
Answer [by ThiefMaster]: how does Array.prototype.slice.call() work?
It uses the slice method arrays have and calls it with its this being the arguments object. This means it calls it as if you did arguments.slice()ass…
View On WordPress














