結果 : javascript flatten array of objects to single object