Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Is this an ES6 generator function?

License

NotificationsYou must be signed in to change notification settings

inspect-js/is-generator-function

github actionscoveragedependency statusdev dependency statusLicenseDownloads

npm badge

Is this a native generator function?

Example

varisGeneratorFunction=require('is-generator-function');assert(!isGeneratorFunction(function(){}));assert(!isGeneratorFunction(null));assert(isGeneratorFunction(function*(){yield42;returnInfinity;}));

Tests

Simply clone the repo,npm install, and runnpm test

About

Is this an ES6 generator function?

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp