There's no built-in way to do that, but you can write a simple loop and keep track of what items you've seen with an associative array. Something like this:
function RemoveDups(array as Object) as Object
out = []
seen = {}
for each item in array
if seen[item] = invalid then
out.Push(item)
seen[item] = true
end for
return out
end function
I haven't tested this, it might require some tweaking.
--Mark