-
• #2
Thanks! Yes, that looks like a big problem. I'll look into it - and thanks for coming up with the code that demonstrates it so nicely.
Array indices should that can be integers should be converted to ints. It looks like when you put a string in a variable, for some reason it doesn't get converted.
-
• #3
Ok, Fixed!
It'll be in http://www.espruino.com/binaries/git/commits/3b5c45f55cef03c7e9cf3ba87bd57ec9a7c536b1 in an hour or so - or 1v62 when it's released.
-
• #4
Great! Thanks!
Hi all,
I have encountered a strange problem regarding indices. I have a small snippet of example code that shows this problem:
I would expect that a[b] and a["0"] would give the same result?
Thanks for all the help so far!