Created
November 27, 2013 22:45
-
-
Save kid-icarus/7684435 to your computer and use it in GitHub Desktop.
For jorybro
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 derp = {foo: 3, bar: 3}; | |
var merp= []; | |
console.log(derp); | |
for (var name in derp) { | |
if (derp.hasOwnProperty(name)) { | |
for (var i = 0; i < derp[name]; i++) { | |
merp.push(name); | |
} | |
} | |
} | |
console.log(merp); |
talon
commented
Nov 27, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment