結果 : how to get array from array of objects in javascript