From 9c408f2397233cea7fdb657aac0400faddcb49cc Mon Sep 17 00:00:00 2001 From: Pascal Perrenoud Date: Thu, 23 May 2024 09:27:53 +0200 Subject: [PATCH] Use multiple write instead of array join --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index 081ffc1..c9e0d5e 100644 --- a/index.ts +++ b/index.ts @@ -15,7 +15,7 @@ export class File implements Writer { } public log(_level: Level, ...data: any[]) : void { - this.sink.write(data.join(" ")) + for (const block of data) this.sink.write(block) } public end() : number | Promise {