Example 1 — Official map + parseInt
Forward only the string so index never becomes a radix.
_.map(["6", "8", "10"], _.ary(parseInt, 1));
// → [6, 8, 10] How It Works
- Wrap.
_.ary(parseInt, 1)keeps only the first argument. - Map. Lodash still calls the iteratee with value, index, array.
- Drop. Index and array never reach
parseInt. - Result. Clean decimal parses — same as the official docs.

