CodeWitness

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?