summaryrefslogtreecommitdiff
path: root/u/leftpadesque/prepend.ts
diff options
context:
space:
mode:
Diffstat (limited to 'u/leftpadesque/prepend.ts')
-rw-r--r--u/leftpadesque/prepend.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/u/leftpadesque/prepend.ts b/u/leftpadesque/prepend.ts
index 9b77aff..0f1ce30 100644
--- a/u/leftpadesque/prepend.ts
+++ b/u/leftpadesque/prepend.ts
@@ -1,4 +1,5 @@
export const prependWith = (arr: string[], prep: string) =>
- Array(arr.length * 2).fill(0)
+ Array(arr.length * 2)
+ .fill(0)
.map((_, i) => i % 2 === 0)
- .map((isPrep, i) => isPrep ? prep : arr[i]);
+ .map((isPrep, i) => (isPrep ? prep : arr[i]));