| .. | |||
| test | 7 months ago | ||
| .eslintrc | 7 months ago | ||
| .nycrc | 7 months ago | ||
| CHANGELOG.md | 7 months ago | ||
| LICENSE | 7 months ago | ||
| README.md | 7 months ago | ||
| index.d.ts | 7 months ago | ||
| index.js | 7 months ago | ||
| package.json | 7 months ago | ||
| tsconfig.json | 7 months ago | ||
Is this a native async function?
var isAsyncFunction = require('is-async-function');
assert(!isAsyncFunction(function () {}));
assert(!isAsyncFunction(null));
assert(!isAsyncFunction(function* () { yield 42; return Infinity; }));
assert(isAsyncFunction(async function () {}));
Simply clone the repo, npm install, and run npm test