In today's edition of "oh my god everything is so freaking interconnected", I learned a W I L D thing about JavaScript's parseInt function:
-
-
Depends. The name "parseInt" with base # for 2nd arg. would lead me to expect it to parse the string in its entirety, or throw an error >>
-
>> upon any invalid chars in string. But it behaves a lot like atoi, where "atoi" makes me expect it to parseall valid chars up to first >>
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
