I am trying to return the results of 2 functions, but I am not succeeding. I am doing the following:
var x = getFunctionResults1(items);
var y = getFunctionResults2(items);
return {x,y}
But getting this output:
[ { x: [ [Object], [Object], [Object], [Object], [Object] ],
y: [ [Object] ] },
{ x: [ [Object], [Object] ], y: [ [Object] ] } ]