HF RL Explorer

Task: Check if String Contains Only Digits

Task: Check if String Contains Only Digits: a task in Terminal-Lego-15k (Harbor dataset). Create a JavaScript utility function that checks whether a given string contains only digit characters (0-9). The function should return true if the string consists exclusively of digits, and false otherwise.

The task

Create a JavaScript utility function that checks whether a given string contains **only digit characters** (0-9). The function should return `true` if the string consists exclusively of digits, and `false` otherwise.

Part of PrimeIntellect/Terminal-Lego-15k.