deno.land / x / masx200_leetcode_test@10.6.5 / shuffle-string / index.ts
1234567export default function restoreString(s: string, indices: number[]): string { //@ts-ignore return Array.prototype.reduce.call(s, (p, c, i) => (p[indices[i]] = c, p), [ ...s, ]).join("");}
Version Info