DEV Community

Calvin
Calvin

Posted on

Reading Snippets [12]

How does Array.prototype.slice.call() work?

It can be used to make arguments object into an Array instance. Under the hood, this is an array and is iterated over.

New arrays are created using the Array. The arrays are passed through slice which is stored in the prototype object.

Top comments (0)