mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
4 lines
107 B
TypeScript
4 lines
107 B
TypeScript
|
export function ensureArray<T>(input: T | T[]): T[] {
|
||
|
return Array.isArray(input) ? input : [input];
|
||
|
}
|