diff --git a/shuffle-string/index.ts b/shuffle-string/index.ts index 47638f8f..4d28a7a1 100644 --- a/shuffle-string/index.ts +++ b/shuffle-string/index.ts @@ -1,6 +1,7 @@ export default function restoreString(s: string, indices: number[]): string { //@ts-ignore return Array.prototype.reduce +//@ts-ignore .call(s, (p, c, i) => ((p[indices[i]] = c), p), [...s]) .join(""); }