Returns true if array contains duplicate instances. Use containsDuplicateValues if you'd rather compare by value.
Returns true if array contains duplicate instances. Use containsDuplicateValues if you'd rather compare by value.