結果 : how to get the last object in an array javascript