Hi, I was wondering what the fastest way to get an item from an object is,
for example I have this object:

                var TESTS = [
                        {
                                id: 1,
                                name: 'Test 1',
                        },
                        {
                                id: 2,
                                name: 'Test 2',
                        }                                 
                ];

If I know the id is 1, do I have to iterate through the whole list to
retrieve the name, or can I use jquery's filter function or something else.

Thanks!
-- 
View this message in context: 
http://www.nabble.com/Best-way-to-grab-an-item-from-an-object--tp20703347s27240p20703347.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to