Array.map() strange behaviour #1547
Replies: 3 comments
-
Posted at 2021-05-28 by jgw Messed up the code insert - see below
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-05-28 by @gfwilliams Hi, this looks like an Espruino issue - maybe not related to map specifically, but it looks like if you Changing
I'm on holiday next week but i've just filed a bug for this at espruino/Espruino#2012 and I'll get on it when I get back |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-05-28 by jgw Thank you for the quick reply. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2021-05-28 by jgw
Consider this code snippet :
Why does map return 1 for the 65000 case ?
It prints 'found : 0', meaning i==0 and the last element of the keys array is 1 ?
What am I missing ?
Beta Was this translation helpful? Give feedback.
All reactions