(min: number, max: number)
| 39 | } |
| 40 | |
| 41 | function isNumberBetween(min: number, max: number) { |
| 42 | return (x: any): x is number => { |
| 43 | return isNumber(x) && x >= min && x <= max; |
| 44 | }; |
| 45 | } |
| 46 | |
| 47 | function isOneOf(...values: any[]) { |
| 48 | return (x: any) => values.includes(x); |
no test coverage detected