JSFiddle - React, Tailwind, and code Playground
by dshilkret
JavaScript
function getMethods(obj)
{
console.log(obj);
var res = [];
for(var m in obj) {
if(typeof obj[m] == "function") {
res.push("function name: " + m);
}
}
return res;
}
var testObj = {
getBackendProperties : function() {
return this.backend_events;
},
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);