DEV Community

Discussion on: 13 useful JavaScript array tips and tricks you should know

Collapse
 
michaeljsalo profile image
Michael J Salo

It's interesting - but what would be a use case for such an object?

{0: “banana”, 1: “apple”, 2: “orange”, 3: “watermelon”, 4: “apple”, 5: “orange”, 6: “grape”, 7: “apple”}

It's still indexed like an array, but is no longer a real array.