(value: T)
| 1 | export function toArray<T>(value: T): T extends readonly any[] ? T : Exclude<T, undefined | null>[] { |
| 2 | return (Array.isArray(value) ? value : value === undefined || value === null ? [] : [value]) as any |
| 3 | } |
| 4 | |
| 5 | export function splitInHalf<T>(arr: readonly T[]): [T[], T[]] { |
| 6 | const half = Math.ceil(arr.length / 2) |
no outgoing calls
no test coverage detected