結果 : create an array from an array of objects javascript