|
|
пре 3 месеци | |
|---|---|---|
| .. | ||
| test | пре 3 месеци | |
| .eslintrc | пре 3 месеци | |
| .nycrc | пре 3 месеци | |
| CHANGELOG.md | пре 3 месеци | |
| LICENSE | пре 3 месеци | |
| README.md | пре 3 месеци | |
| index.d.ts | пре 3 месеци | |
| index.js | пре 3 месеци | |
| package.json | пре 3 месеци | |
| tsconfig.json | пре 3 месеци | |
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