Created
August 19, 2016 14:46
-
-
Save MCheli/05d4f421b48d49e892d2ebbdd865869e to your computer and use it in GitHub Desktop.
Looping through nested objects
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
var propertyList = JSON.parse(newProject.dataConfig); | |
//Loop through the list types of data | |
for(key in propertyList) { | |
//Loop through the properties in each type of data | |
for(prop in propertyList[key]) { | |
result = propertyList[key][prop].propType; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment