結果 : js map array of objects to new object