chore: return since annotation

This commit is contained in:
tbitw2549 2024-06-14 19:46:41 +03:00
parent d6e475ec0d
commit 1c883b983e

View File

@ -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]
}