input: Write a function to optimize the given Python code to use built-in functions for removing duplicates from an array. The function should return a new array with all unique elements in the same order. The original array should not be modified. If the input array is empty, the function should return an empty array.
  def removeDuplicates(array):
      return list(dict.fromkeys(array))
  
  assert removeDuplicates([3, 4, 5, 1, 2])==[3, 4, 5, 1, 2]
  assert removeDuplicates([3, 5, 10, 1, 2, 5, 3])==[3, 5, 10, 1, 2]
  assert removeDuplicates([4, 3, 1, 2, 3, 2, 4])==[4, 3, 1, 2]
  assert removeDuplicates([])==[]
output: def removeDuplicates(array):
      return list(dict.fromkeys(array))