Skip to navigation

Question:
Get the index of a javascript object:

Use simple algorithms as well as simple data structures.