I have read Armin Ronacher's Stop Being Cute and Clever article, where he gives this example of strange implementation of .map()
in JavaScript, but he has no explanation for this and I am quite curious, because it does not make sense to me. So, why
console.log(["1", "2", "3"].map(parseInt))
outputs:
[ 1, NaN, NaN ]