diff options
| author | Sam Nystrom <sam@samnystrom.dev> | 2024-03-06 20:52:45 +0000 |
|---|---|---|
| committer | Sam Nystrom <15555332-SamNystrom1@users.noreply.replit.com> | 2024-03-06 20:52:45 +0000 |
| commit | ac83dd4a08bdbab6df270d6dae8d9e2d6d619342 (patch) | |
| tree | d928f552d7fb89a96b757b00899d4dbc0639cacd /src/util.ts | |
init
Diffstat (limited to 'src/util.ts')
| -rw-r--r-- | src/util.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.ts b/src/util.ts new file mode 100644 index 0000000..9f84ffe --- /dev/null +++ b/src/util.ts @@ -0,0 +1,2 @@ +export const cls = (...classes: Array<string | false | null | undefined>) => + classes.filter(c => c).join(' ');
\ No newline at end of file |
