export const toArray = (val: unknown) => (typeof val === 'string' ? [val] : val)