Example 1 — Official Docs
The docs show arguments failing and a real array passing.
(function () {
return _.isArray(arguments);
})();
// → false
_.isArray([1, 2, 3]);
// → true How It Works
- Call a function. JS builds an Arguments object (even with no params).
- Test it.
_.isArray(arguments)→false. - Test a literal.
[1, 2, 3]is a real Array →true. - Takeaway. Looks-like-a-list is not enough — the type must be Array.

