UNPKG

type-tls

Version:

type-tls 封装了与类型相关的工具,比如:获取数据的类型 或 类型名字、判断数据的类型 等

58 lines (28 loc) 754 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [type-tls](./type-tls.md) &gt; [isGeneratorFunction](./type-tls.isgeneratorfunction.md) ## isGeneratorFunction() function 判断函数是否是生成器函数 **Signature:** ```typescript export declare function isGeneratorFunction(fun: Function): boolean; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> fun </td><td> Function </td><td> 被判断的函数 </td></tr> </tbody></table> **Returns:** boolean ## Remarks 生成器函数 不包含 异步生成器函数 AsyncGeneratorFunction