JSFiddle - React, Tailwind, and code Playground
by Darby Rathbone
JavaScript
Object.getFunctions = function (o) {
var list = [];
while (o) {
list.push.apply(list, Object.getOwnPropertyNames(o).filter(function (e) {
try {
return typeof o[e] === 'function';
} catch (f) {
return f;
}
}));
list = list.map(function(e3){
if (typeof e3 === 'string')
try{return o[e3];}catch(e4){return e4}
return e3;
});
o = Object.getPrototypeOf(o);
}
return list;
};
console.log(Object.getFunctions(window));