feat: make admin adding and removal consistent with mods

This commit is contained in:
Xyphyn committed 2023-08-28 16:28:44 -07:00
1 parent 9d0694f138
commit 98eeadab42
4 files changed
+92 -14

No files matched your search

+4
View File
@@ -94,3 +94,7 @@ export const trycatch = <T>(func: () => T): Maybe<T> => {
})
}
}
export const removeItem = <T>(array: T[], predicate: (item: T) => boolean) => {
array.splice(array.findIndex(predicate), 1)
}