Adds eventTypeId as a parameter (#1217)
This commit is contained in:
1 parent
8c1b69cc0f
commit
22aa083883
6 files changed
+116
-59
No files matched your search
@@ -0,0 +1,9 @@
|
||||
export function ensureArray<T>(val: unknown): T[] {
|
||||
if (Array.isArray(val)) {
|
||||
return val;
|
||||
}
|
||||
if (typeof val === "undefined") {
|
||||
return [];
|
||||
}
|
||||
return [val] as T[];
|
||||
}
|
||||
Reference in new issue
Block a user