Shoutout to loaded properties

Tags: javascript 2020-09-29 16:38:11

I was in the chrome dev tools today and was trying to debug a javascript framework that wasn't loading despite both the JS script & CSS being loaded in.

This was immensely helpful just to dump a list of available properties or objects to console:

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


Tags:javascript 2020-09-29 16:38:11