Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
JavaScript does not have real arrays. That isn't all bad. JavaScript's arrays are really easy to use. There is no need to give them a dimension, and they never generate out-of-bounds errors. But their performance can be considerably worse than real arrays.
The typeof operator does not distinguish between arrays and objects. To determine that a value is an array, you also need to consult its constructor property: