Why in JavaScript typeof [] does not return Array
When trying to check if a variable is an array in JavaScript, typeof will not be the command you want. The answer is simple, and the solution easily googled, but I wanted to know why it does what it does. Follow this trip down a rabbit hole…