結果 : javascript loop through array of objects and create new array