Convert Array-like objects, Array.prototype.slice or Array.from
23:55 02 May 2016

I know there are two ways to convert Array-like objects to Array.

  1. Array.prototype.slice.call(arguments)
  2. Array.from(arguments)

I wonder what's the differences between them , which one should I use to convert Array-like objects.

javascript