diff options
| author | stonedDiscord <Tukz@gmx.de> | 2023-07-27 12:11:48 +0200 |
|---|---|---|
| committer | stonedDiscord <Tukz@gmx.de> | 2023-07-27 12:11:48 +0200 |
| commit | 9dd5f62f9e5ae8fe26b959ac03b8386836185241 (patch) | |
| tree | ad6a1c1385a6c438bfc796157707a89beadb7be9 /webAO/client/isCategory.ts | |
| parent | e5adad3edbce030411f03e192046c910fef4e185 (diff) | |
category
Diffstat (limited to 'webAO/client/isCategory.ts')
| -rw-r--r-- | webAO/client/isCategory.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/webAO/client/isCategory.ts b/webAO/client/isCategory.ts new file mode 100644 index 0000000..0d2b8df --- /dev/null +++ b/webAO/client/isCategory.ts @@ -0,0 +1,6 @@ +export const isCategory = (trackname: string) => { + const audioEndings = ["==", "--"]; + return ( + audioEndings.filter((ending) => trackname.startsWith(ending)).length === 1 + ); +}
\ No newline at end of file |
