Example 1 — Official: Separator + Limit
Split on - but keep only the first two segments.
_.split('a-b-c', '-', 2);
// → ['a', 'b'] How It Works
- Separator. Split wherever
-appears. - Parts. Would be
a,b,c. - Limit 2. Keep only the first two.
- Result.
['a', 'b']— no leftover third chunk.

