INTRODUCTION : I have a function(callback) that receives a object as an argument, inside this function I have a method(or function I'm note sure what is it) which then partitions that object. Now I'll add some code to add some clarification to introduction part.
Result.getListCallback = function(obj) {
Result.complexObject = obj.data;
var objectPartitioner = Result.complexObject.partition( function(n){
return n.case.id == Result.selectedData.case.id;
});
}
What I want to do is to modify this "objectPartitioner" to return couple of things for me not just case.id , how can I do that , perhaps using several returns ? thank you