mirror of
https://github.com/actions/setup-python.git
synced 2025-06-13 07:47:12 +02:00
Initial pass
This commit is contained in:
33
node_modules/is-generator-fn/readme.md
generated
vendored
Normal file
33
node_modules/is-generator-fn/readme.md
generated
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
# is-generator-fn [](https://travis-ci.org/sindresorhus/is-generator-fn)
|
||||
|
||||
> Check if something is a [generator function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function*)
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install is-generator-fn
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
const isGeneratorFn = require('is-generator-fn');
|
||||
|
||||
isGeneratorFn(function * () {});
|
||||
//=> true
|
||||
|
||||
isGeneratorFn(function () {});
|
||||
//=> false
|
||||
```
|
||||
|
||||
|
||||
## Related
|
||||
|
||||
- [is](https://github.com/sindresorhus/is) - Type check values
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
Reference in New Issue
Block a user