Skip to content

Instantly share code, notes, and snippets.

@Ercenk
Last active August 29, 2015 14:20
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 Ercenk/da2f082b1fa625ac1d78 to your computer and use it in GitHub Desktop.
Save Ercenk/da2f082b1fa625ac1d78 to your computer and use it in GitHub Desktop.
Full Scale 180 blog post on Azure ARM templates at blog.fullscale180.com
var myObject = {
propertyOne: 1,
propertyTwo: 2
};
// And access propertyOne with the either with
myObject.propertyOne;
// or
myObject['propertyOne'];
// Given this situation, there is nothing that will prevent us to do this:
var selector = 'One';
var propertyValue = myObject['property' + selector];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment