Create a solution that checks if a given string consists of a sub-string pattern repeated multiple times to return true or false.
repeated("a") ➞ false
repeated("ababab") ➞ true
repeated("aba") ➞ false
repeated("abcabcabcabc") ➞ true
repeated("aaxxtaaxztaaxxt") ➞ false
Adroit programmers can solve this in one line.