Perf: optimiaztions, avoid spread operator

This commit is contained in:
SukkaW
2024-06-26 18:30:41 +08:00
parent 33636285e9
commit 098e8815ae
9 changed files with 110 additions and 62 deletions

1
Build/lib/misc.ts Normal file
View File

@@ -0,0 +1 @@
export const isTruthy = <T>(i: T | 0 | '' | false | null | undefined): i is T => !!i;