I have an array of objects: [obj1, obj2, obj3]
obj1 = {id:1,name:First}
obj2 = {id:2,name:Second}
...
But the object's array indexes are constantly changing. How else can I reference a specific object given only its id property? The goal is to set a variable equal to the name property (e.g. obj1's name = First). In other words, how can I reference an object's property given the key to a different property?
Any help would be greatly appreciated! Thank you!