Which test reliably distinguishes an array value from an ordinary non-array object?
Explanation
Array.isArray returns true for arrays and false for ordinary objects that are not arrays. typeof cannot make this distinction because both values produce object in that operator's classification.