Problem

Return true if any value appears twice.

Examples

  • duplicateValues([1, 2, 1]) -> true
Compile and test (Ctrl+Enter)