input: Write a function to optimize the following Python code that removes duplicates from an array using built-in functions.
  
  def removeDuplicates(array): 
      return list(set(array))
  
  assert removeDuplicates([1, 2, 2, 3, 4, 4, 5]) == [1, 2, 3, 4, 5]
  assert removeDuplicates(['a', 'b', 'b', 'c', 'c', 'c']) == ['a', 'b', 'c']
  assert removeDuplicates([]) == []
  assert removeDuplicates([10]) == [10]
  assert removeDuplicates([5, 5, 5, 5]) == [5]
output: def removeDuplicates(array): 
      return list(set(array))