JS: arguments (object)

By Xah Lee. Date: . Last updated: .
function ff() {
  return arguments;
}

console.log(ff("a", "b"));
// { "0": "a", "1": "b" }

console.log(Array.isArray(ff()) === false);

💡 TIP: never use the argument object. Always declare function parameters. It makes your code readable. If needed, use JS: Function Rest Parameters .

JavaScript. Function