mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Perf: optimiaztions, avoid spread operator
This commit is contained in:
1
Build/lib/misc.ts
Normal file
1
Build/lib/misc.ts
Normal file
@@ -0,0 +1 @@
|
||||
export const isTruthy = <T>(i: T | 0 | '' | false | null | undefined): i is T => !!i;
|
||||
Reference in New Issue
Block a user