Function isGeneratorFunction
isGeneratorFunction< G extends Generator<any, any, any> = Generator<unknown, any, unknown>,>( fn: any,): fn is (this: any, ...args: any[]) => G Type Parameters
- G extends Generator<any, any, any> = Generator<unknown, any, unknown>
Returns fn is (this: any, ...args: any[]) => G
Is the given function a native generator function?