Good question. I don't know of any fast method or built-in function. When I had to do the same, I processed the array in a loop and copyed items in a new array only if different from the preceding one. If needed, I sorted the array before processing. Let's see if anyone knows a faster and more efficient way...