(value: T | T[])
| 1 | import type { DisplayValueType } from '../BaseSelect'; |
| 2 | |
| 3 | export function toArray<T>(value: T | T[]): T[] { |
| 4 | if (Array.isArray(value)) { |
| 5 | return value; |
| 6 | } |
| 7 | return value !== undefined ? [value] : []; |
| 8 | } |
| 9 | |
| 10 | export const isClient = |
| 11 | typeof window !== 'undefined' && window.document && window.document.documentElement; |
no outgoing calls
no test coverage detected
searching dependent graphs…