|
|
|
|
|
by benatkin
1218 days ago
|
|
or just this: ['10', '10', '10'].map(val => parseInt(val))
Leading zeroes can often be considered invalid input, and you may be able to safely assume that it has been dealt with already.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. |
|
The extra parentheses is just habit from Prettier formatting :)