結果 : get the last object in an array javascript