Example 1 — Official: Positive Index
Read the element at index 1 (second item).
_.nth(["a", "b", "c", "d"], 1);
// → "b" How It Works
- Source. Four letters; indexes run
0…3. - Ask for 1. Second slot →
"b". - Same idea as brackets. For non-negative indexes, like
arr[1]. - No side effects. The array is unchanged.

