Last Updated: February 25, 2016
·
209
· dustintheweb

View Every Global Variable in a Namespace

for(var g in window) {
    if(window.hasOwnProperty(g)) console.log(g);
}

// replace window with custom namespace if needed