deno.land / x / masx200_leetcode_test@10.6.5 / replace-all-digits-with-characters / index.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
export default function replaceDigits(s: string): string { return Array.prototype.map.call( s, (c, i, a) => i & 1 ? String.fromCharCode(Number(c) + a[i - 1].charCodeAt(0)) : c, ).join("");}
masx200_leetcode_test

Version Info

Tagged at
a year ago