3 ms·
> ["10", "10", "10"].map(parseInt) [ 10, NaN, 2 ] what... the... fuck... I have seen the WAT video but forgot about this example.
by jrvarela56 4y ago
> ["10", "10", "10"].map(parseInt)
[ 10, NaN, 2 ]
what... the... fuck...
I have seen the WAT video but forgot about this example.
- ironmagma 4y agoNot that surprising when you remember that map and parseInt both deal with more than one argument.
- PoignardAzur 4y agoThat example isn't in the WAT video (I just re-watched it).
- pohl 4y agoIt would have been a pretty long talk if they had included all the WAT