capint
3/27/2016 - 5:34 PM

JavaScript >> arguments

JavaScript >> arguments

//The arguments object is not an Array. It is similar to an Array, but does not have any Array properties except length. 
//=> It need to be converted to a real Array:
var args = Array.prototype.slice.call(arguments);