(instance: any)
| 38 | } |
| 39 | |
| 40 | static asyncIterable(instance: any): instance is AsyncIterable<unknown> { |
| 41 | return !is.nullish(instance) && !!instance[Symbol.asyncIterator]; |
| 42 | } |
| 43 | |
| 44 | static Constructor(instance: any): instance is Constructor { |
| 45 | return typeof instance === 'function' && !!instance.prototype && !Object.getOwnPropertyNames(instance).includes('arguments') && instance.toString().match(/^function.*\{ \[native code\] \}|^class/g); |