LeetCodeReplace All Digits with CharactersReplace All Digits with CharactersEasyStringSolution export function replaceDigits(s: string): string { const shift = (c: string, x: number) => { return String.fromCharCode(c.charCodeAt(0) + x); }; return [...s].map((char, i) => (i % 2 === 0 ? char : shift(s[i - 1], +char))).join(''); }LeetCodeReplace All Digits with Charactershttps://leetcode.com/problems/replace-all-digits-with-characters