Fix parseInt used as a map callback
This callback gives parseInt both the value and the array index. The index is interpreted as the radix.
const values = ["2", "10", "3"];
const numbers = values.map(parseInt);
Pass a callback that uses only the value when you want to convert each string independently.
Which change converts all three strings to numbers?
Why it matters: Array callbacks receive an index argument that may change the behavior of a reused function.