Returns true if an array contains duplicates.
The array to check against.
True if the array contains duplicates.
Returns true if an array contains duplicates.