JavaScript, 36 bytes s=>n=>s.replace(/./g,`$&`.repeat(n)) Try it online!
posted 3y ago by Shaggy
# JavaScript, 36 bytes <!-- language-all: lang-javascript --> s=>n=>s.replace(/./g,`$&`.repeat(n)) [Try it online!](https://tio.run/##FclRCoAgDADQy0RMKIX@9SwunVIMJ1pd3@r3vRMf7KEd9VqLRBrJjm5dsa7rRpUxEBht8uKn2f9CeEFRagQpXZg0S4YEPsq9M3kF23cv)