Last Updated: February 25, 2016
·
227
· 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