(thing: T | readonly T[])
| 3 | *--------------------------------------------------------*/ |
| 4 | |
| 5 | export function asArray<T>(thing: T | readonly T[]): readonly T[] { |
| 6 | return thing instanceof Array ? thing : [thing]; |
| 7 | } |
| 8 | |
| 9 | /** |
| 10 | * Runs a binary search on the array. Returns the index of the key if it were |
no outgoing calls
no test coverage detected