2 ms·
parseInt and the map callback signature both declare the second argument as integers: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_
by acdha 7y ago
parseInt and the map callback signature both declare the second argument as integers:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt#Parameters https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map#Parameters https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
The thing which would actually catch this would be the mismatch in the number of arguments (modulo someone declaring that third argument as optional) or breaking compatibility to change one of them not to be a basic integer.