JSFiddle - React, Tailwind, and code Playground

by tea4two

JavaScript

function getMethod(obj) {
 var result = [];
    for (var i in obj) {
        try {
            if( typeof(obj[i]) == 'function'){
               result.push(i + ': ' + obj[i].toString());
            }
        }
        catch(err) {
            result.push(i + ': だめよ ');
        }
    }
    return result;
}

console.log( getMethod(window).join('\n') );