結果 : how to get last element in map javascript