JSFiddle - React, Tailwind, and code Playground
by dshilkret
JavaScript
function getMethods(obj)
{
var res = [];
for(var m in obj) {
if(typeof obj[m] == "function") {
res.push(m);
console.log(obj);
}
}
return res;
}
var testObj = {
fullName : function() {
return this.backend_events + " " + this.cdl_host;
},
backend_events: true,
list_view_document_limit: "",
item_type: "SP.Data.QATemplateLibItem",
cdl_host: "https://docintsp2016.discovertechnologies.com"
};
var res = getMethods(testObj);
console.log(res);