In Perl I can repeat a character multiple times using the syntax:
$a = \"a\" x 10; // results in \"aaaaaaaaaa\"
Is there a simple way to ac
Here is an ES6 version
const repeat = (a,n) => Array(n).join(a+"|$|").split("|$|"); repeat("A",20).forEach((a,b) => console.log(a,b+1))