Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
myLookupObj = {};
//for each might not exits, you may need to use a for loop
[“member1”, “member2”, “member3”].forEach(function () {
myLookupObj[key] = 'location';
//then continue as you have been
myLookupObj[“member2”] //-> 'location'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment