input: Write a function to optimize the given Python code using built-in functions to remove duplicates from an array. Return the array with duplicates removed.
  def removeDuplicates(array): 
      return list(set(array))
  
  assert removeDuplicates([1,2,2,3,4,4,5])==[1,2,3,4,5]
  assert removeDuplicates([5,5,5,5,5])==[5]
  assert removeDuplicates([1,2,3,4,5])==[1,2,3,4,5]
  assert removeDuplicates([])==[]
  assert removeDuplicates([1])==[1]
output: def removeDuplicates(array): 
      return list(set(array))