(value: readonly T[] | T)
| 142 | } |
| 143 | |
| 144 | function toArrayStrict<T>(value: readonly T[] | T): readonly T[] { |
| 145 | if (isArray(value)) { |
| 146 | return value; |
| 147 | } |
| 148 | return [value]; |
| 149 | } |
| 150 | |
| 151 | export function toArray<T>(value: readonly T[] | T | undefined): readonly T[] { |
| 152 | if (value === undefined) { |
no test coverage detected