Using JavaScript, I need to check if a given string contains a sequence of repeated letters, like this:
"aaaaa"
How can I do that?