Skip to content

Commit 82251a3

Browse files
committed
Go a little faster by comparing against undefined
1 parent 521a00a commit 82251a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/emitter.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1358,7 +1358,7 @@ export function createOrReusePrinter(o: ReusablePrinterOptions = {}) {
13581358
+ keyNum(o.target)
13591359
+ keyNum(o.newLine);
13601360
let printer = printerCache.get(key);
1361-
if (!printer) {
1361+
if (printer === undefined) {
13621362
printerCache.set(key, printer = createPrinter(o));
13631363
}
13641364
return printer;

0 commit comments

Comments
 (0)