Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/vuetifyjs/vuetify
/ wrapInArray
Function
wrapInArray
packages/docs/src/utils/helpers.ts:147–152 ·
view source on GitHub ↗
(v: T | T[] | null | undefined)
Source
from the content-addressed store, hash-verified
145
}
146
147
export
function
wrapInArray<T> (v: T | T[] | null | undefined): T[] {
148
return
v == null
149
? []
150
: Array.isArray(v)
151
? v : [v]
152
}
Callers
1
main.ts
File · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected