【文件属性】:
文件名称:is-generator-function-name:检查给定的值是否具有 `GeneratorFunction` 名称或 displayName
文件大小:6KB
文件格式:ZIP
更新时间:2021-06-03 18:47:47
JavaScript
is-generator-function-name
检查给定值是否具有GeneratorFunction名称或 displayName。
安装
npm i is-generator-function-name --save
npm test
用法
有关更多用例,请参阅
var isGeneratorFunctionName = require ( 'is-generator-function-name' )
isGeneratorFunctionName ( { name : 'GeneratorFunction' } )
//=> false
isGeneratorFunctionName ( function ( ) { } )
//=> false
isGeneratorFunctionName ( function GeneratorFunction ( ) { } )
/
【文件预览】:
is-generator-function-name-master
----.travis.yml(316B)
----index.js(448B)
----test.js(1KB)
----package.json(751B)
----CONTRIBUTING.md(1KB)
----LICENSE.md(1KB)
----.gitignore(630B)
----CHANGELOG.md(122B)
----README.md(4KB)
----.editorconfig(397B)