結果 : how to check if object is already in array javascript