input: Write a function to optimize the given Python code that removes duplicates from an array by using built-in functions. The original function uses nested loops and the pop method, while the optimized function should utilize a more efficient approach.
  
  def removeDuplicates(array): 
      return list(set(array))
  
  assert removeDuplicates([1, 2, 2, 3, 4, 4, 5])==[1, 2, 3, 4, 5]
  assert removeDuplicates([10, 20, 30, 40, 20, 10])==[10, 20, 30, 40]
  assert removeDuplicates([1, 1, 1, 1, 1])==[1]
  assert removeDuplicates([5, 5, 5, 5])==[5]
  assert removeDuplicates([])==[]
output: def removeDuplicates(array): 
      return list(set(array))