© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Faiyaz Shaikh
Programmer & Traveller (I think that's it..)
You can access arguments of a function with arguments object. It returns an object.
function someFn() { console.log(arguments) } someFn(1, 2, 3) // { 0: 1, 1: 2, 2: 3 } someFn(1, 2) // { 0: 1, 1: 2 }