Converting arguments into an array

Why to use this code :

var args = Array.prototype.slice.call(arguments);

instead of :

args = [...arguments];

?

In case spread operator is not supported.

1 Like