logoalt Hacker News

idle_zealotyesterday at 8:33 PM1 replyview on HN

Does it count as 0-indexing when your 0 is a floating point number?


Replies

krackersyesterday at 9:08 PM

Actually in JS array indexing is same as property indexing right? So it's actually looking up the string '0', as in arr['0']

show 1 reply