mirror of
https://github.com/nuxt/nuxt.git
synced 2025-03-03 22:34:21 +00:00
chore: return since annotation
This commit is contained in:
parent
d6e475ec0d
commit
1c883b983e
@ -1,6 +1,7 @@
|
||||
import { useNuxtApp } from './nuxt'
|
||||
import defu from 'defu'
|
||||
|
||||
/** @since 3.9.0 */
|
||||
export function toArray<T> (value: T | T[]): T[] {
|
||||
return Array.isArray(value) ? value : [value]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user