Skip to content

Instantly share code, notes, and snippets.

@Sivli-Embir
Last active October 19, 2015 18:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sivli-Embir/a8f24385c75bb357b48c to your computer and use it in GitHub Desktop.
Save Sivli-Embir/a8f24385c75bb357b48c to your computer and use it in GitHub Desktop.
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