(no title)
contextnavidad | 3 years ago
You have to do `['10', '10', '10'].map((val) => parseInt(val, 10));` to get the "expected" output. In addition, you should always provide `base` to `parseInt` otherwise it has it's own interpretation infered by the value you give it.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
benatkin|3 years ago
Also the parens around a single argument of an arrow function are a superstitious thing suggested by some well-known react developer a while back, I think.
contextnavidad|3 years ago
The extra parentheses is just habit from Prettier formatting :)
jakear|3 years ago
vbezhenar|3 years ago
JeremyBanks|3 years ago
PoignardAzur|3 years ago