function abc(obj) {
obj.query?obj.query(): console.log('no query');
obj.callback && (this.callback = obj.callback);
}
abc({
"query1": function query() { console.log("i am query") },
"callback": function (row) { return row + "i am callback"}
})
function abc(obj) {
obj.query?obj.query(): console.log('no query');
obj.callback && (this.callback = obj.callback);
}
abc({
"query1": function query() { console.log("i am query") },
"callback": function (row) { return row + "i am callback"}
})