(...values: any[])
| 45 | } |
| 46 | |
| 47 | function isOneOf(...values: any[]) { |
| 48 | return (x: any) => values.includes(x); |
| 49 | } |
| 50 | |
| 51 | function hasRequiredProperties<T extends Record<string, unknown>>(obj: T, keys: Array<keyof T>) { |
| 52 | return keys.every((key) => obj.hasOwnProperty(key)); |
no outgoing calls
no test coverage detected