If you have ever built a "fancy text" generator — the things people paste into

Instagram bios and Discord names — you have written this function:

// Looks right. Is wrong.

const toBold = text => text.replace(/[A-Za-z]/g, ch => {

const c = ch.charCodeAt(0);