Last active
October 19, 2015 18:22
-
-
Save Sivli-Embir/a8f24385c75bb357b48c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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