結果 : how to create object from array of objects in javascript