3 ms·
My favorite library strangeness is: > [1, 4, 9].map(sqrt) [1, 2, 3] > ['1', '2', '3'].map(parseInt) [1, NaN, NaN] cf. http://stackoverflow.com
by lifthrasiir 13y ago
My favorite library strangeness is:
> [1, 4, 9].map(sqrt)
[1, 2, 3]
> ['1', '2', '3'].map(parseInt)
[1, NaN, NaN]
cf. http://stackoverflow.com/questions/262427/javascript-arraymap-and-parseint http://stackoverflow.com/questions/262427/javascript-arrayma...