I've come across something a bit odd.
I'm trying to parse a string with a time in ( e.g. "12:00", "13:30") into two separate integers. I tried this:
timeString = "12:00"
[hours, minutes] = timeString.split(":").map(parseInt)
But minutes comes out as NaN
I thought there was a problem with parseInt taking in "00", but when I tried parseInt("00") in the console I get 0.
Can someone shed some light on this?