HF RL Explorer

Task: Check for Repeated Characters in a String (JavaScript)

Task: Check for Repeated Characters in a String (JavaScript): a task in Terminal-Lego-15k (Harbor dataset). Implement a JavaScript function that checks whether a string contains any repeated characters. The function should return true if all characters in the string are unique (no repeats), and…

The task

Implement a JavaScript function that checks whether a string contains any repeated characters. The function should return `true` if all characters in the string are unique (no repeats), and `false` if any character appears more than once.

Part of PrimeIntellect/Terminal-Lego-15k.