4 ms·
TypeScript doesn't complain about this[1], as the type of parseInt matches the type of Array.prototype.map parameter. [1]: https://www.typescriptlang.org/play/
by epidemian 7y ago
TypeScript doesn't complain about this[1], as the type of parseInt matches the type of Array.prototype.map parameter.
[1]: https://www.typescriptlang.org/play/#src=console.log(%5B'1'%2C%20'7'%2C%20'11'%5D.map(parseInt))%0A https://www.typescriptlang.org/play/#src=console.log(%5B'1'%...