Today while coding, I came across something puzzling.
arguments.concat(someNumber);
This line gave me an error for undefined function. Initially, I assumed that arguments
was a native object for optimization purposes, but later discovered it's simply a plain javascript object and not an array or internal native object. This left me pondering if there is a specific reason behind this design choice.