Example 1 — Official: First Element
Read the value at index 0.
_.head([1, 2, 3]);
// → 1 How It Works
- Source. Official sample:
[1, 2, 3]. - First slot. Index
0holds1. - Return.
_.headreturns that value. - No change. The array still contains three numbers.

