aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--webAO/client/isCategory.ts6
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