Create a function in Python that returns the unique elements in a given array.
[1, 4, 2, 1, 5, 4]
def unique(arr): 
  unique_arr = [] 
  for i in arr: 
    if i not in unique_arr: 
      unique_arr.append(i) 
  return unique_arr