(property: T | Function, ...args: any[])
| 324 | } |
| 325 | |
| 326 | function getOrCall<T>(property: T | Function, ...args: any[]): T { |
| 327 | return isFunction(property) ? property(...args) : property; |
| 328 | } |
| 329 | |
| 330 | // NOTE: Only works for `typeof T !== 'object'`. |
| 331 | function isMap<T>(value: SingleOrListOrMap<T>): value is {[key: string]: T} { |
no test coverage detected
searching dependent graphs…