Skip to content

Instantly share code, notes, and snippets.

@phynet
Created December 11, 2015 09:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phynet/5e36a7f083674f8ad902 to your computer and use it in GitHub Desktop.
Save phynet/5e36a7f083674f8ad902 to your computer and use it in GitHub Desktop.
Create an array with dictionary values in JAVASCRIPT
var array = [];
for (key in dictPush){
temp = {};
temp[key] = dictPush[key];
array.push(temp);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment