|
|
пре 2 недеља | |
|---|---|---|
| .. | ||
| test | пре 2 недеља | |
| .eslintrc | пре 2 недеља | |
| .nycrc | пре 2 недеља | |
| CHANGELOG.md | пре 2 недеља | |
| LICENSE | пре 2 недеља | |
| README.md | пре 2 недеља | |
| index.d.ts | пре 2 недеља | |
| index.js | пре 2 недеља | |
| package.json | пре 2 недеља | |
| tsconfig.json | пре 2 недеља | |
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