Skip to content

Instantly share code, notes, and snippets.

View jeanchernandez's full-sized avatar

Jean Hernández jeanchernandez

View GitHub Profile
var keys = Array()
console.group("Instances");
for (var id in savegame.instances) {
var instance = savegame.instances[id];
console.log(id, instance);
for (var key in instance) {
if (keys.indexOf(key)==-1) {
keys.push(key);
}
}