(no title)
ryanlm
|
9 years ago
Yesterday I had to store integers as keys in a map. It's good to learn today that they are implicitly converted to strings. Yes I could have used an array, but that would of required me to know the max index I would suppose. Maybe in JavaScript I insert into the array at any index, but that doesn't seem usual to me, coming from a C background I'd allocate the max index + 1.
chrisseaton|9 years ago
BillinghamJ|9 years ago
fenomas|9 years ago
rasz_pl|9 years ago