This question already has an answer here:
I'm confused with Node.js function arguments object.
Suppose i have following code:
function x() {
return arguments;
}
console.log(x(1, 2, 3));
In chrome developer tools it returns as an Array:
[1, 2, 3]
But i got different result in node.js:
{ '0': 1, '1': 2, '2': 3 }
How come?