結果 : typescript construct object from array