How to check for unique values in an array?

I've been trying to use the unique function and it is erasing values instead of finding the unique ones.

What is the best way to use it? Is there an efficient way to either check if a value already exists in an array so it's not added or to reduce the array to only unique values?

The variable marked with an _u is with unique. They both have the same inputs otherwise but when using unique, some of the terms go away that were unique leaving a gap. What do you recommend?

1 reply