mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 23:32:38 +00:00
7 lines
174 B
TypeScript
7 lines
174 B
TypeScript
/** @since 3.9.0 */
|
|
export function toArray<T> (value: T | T[]): T[] {
|
|
return Array.isArray(value) ? value : [value]
|
|
}
|
|
|
|
export const MODE_RE = /\.(server|client)(\.\w+)*$/
|