O número é um repdígito?

Um repdígito é formado pelo mesmo algarismo uma ou mais vezes. Retorne true se o número for um repdígito não negativo, incluindo 0, e false se for negativo ou contiver algarismos diferentes.

Exemplos

isRepdigit(66) // true
isRepdigit(0) // true
isRepdigit(-11) // false