export function toArray(val: T | T[]): T[] { return Array.isArray(val) ? val : [val]; }