(v: T | T[])
| 230 | } |
| 231 | |
| 232 | function asArray<T>(v: T | T[]): T[] { |
| 233 | if (!v) { |
| 234 | return []; |
| 235 | } |
| 236 | |
| 237 | return Array.isArray(v) ? v : [v]; |
| 238 | } |
| 239 | |
| 240 | function runValidate<T>(validate: ValidationFunction<T>, value: T): string[] { |
| 241 | if (typeof validate === 'function') { |
no outgoing calls
no test coverage detected