parseInt
uses the first two arguments being passed in by map, and uses the second argument to specify the radix.
Here's what's happening in your code:
parseInt('10', 0) // 10
parseInt('10', 1) // NaN
parseInt('10', 2) // 2
parseInt('10', 3) // 3
parseInt('10', 4) // 4
Here's a link to MDN on parseInt
: https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/parseInt.