diff --git a/utils/array.ts b/utils/array.ts index 65888cf..226ff99 100644 --- a/utils/array.ts +++ b/utils/array.ts @@ -1,4 +1,4 @@ -export type MixedArray = string | (string | string)[] +export type MixedArray = string | string[] | undefined export const toArray = (mixedArray: MixedArray) => (Array.isArray(mixedArray) ? mixedArray.flat() : [mixedArray]).filter(Boolean)