You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			|  | 5 months ago | |
|---|---|---|
| .. | ||
| test | 5 months ago | |
| .eslintrc | 5 months ago | |
| .nvmrc | 5 months ago | |
| .nycrc | 5 months ago | |
| CHANGELOG.md | 5 months ago | |
| LICENSE | 5 months ago | |
| README.md | 5 months ago | |
| index.d.ts | 5 months ago | |
| index.js | 5 months ago | |
| package.json | 5 months ago | |
| tsconfig.json | 5 months ago | |
		
			
				
				README.md
			
		
		
			
			
		
	
	is-generator-function 
Is this a native generator function?
Example
var isGeneratorFunction = require('is-generator-function');
assert(!isGeneratorFunction(function () {}));
assert(!isGeneratorFunction(null));
assert(isGeneratorFunction(function* () { yield 42; return Infinity; }));
Tests
Simply clone the repo, npm install, and run npm test
