mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-02 02:17:15 +00:00
4 lines
101 B
TypeScript
4 lines
101 B
TypeScript
|
export function toArray<T> (value: T | T[]): T[] {
|
||
|
return Array.isArray(value) ? value : [value]
|
||
|
}
|