I found some strange behavior in the javascript parse int function.
Check the following code:
console.log([..."111"].map(Number.parseInt))
console.log([..."111"].map(x => Number.parseInt(x)))
When you run the first line, you get: [1, Nan, 1]
When you run the second line, you get: [1, 1, 1]
Can someone explain this strange behavior?