-1
2つの関数の結果を返そうとしていますが、成功しません。私は、次のことをやっている:JavaScript内の複数の関数の結果を返す
var x = getFunctionResults1(items);
var y = getFunctionResults2(items);
return {x,y}
しかし、この出力を得る:
[ { x: [ [Object], [Object], [Object], [Object], [Object] ],
y: [ [Object] ] },
{ x: [ [Object], [Object] ], y: [ [Object] ] } ]