tree: 560efd4c661968df1416962d68c96b4f5664d543 [path history] [tgz]
  1. test/
  2. .eslintrc
  3. .nycrc
  4. CHANGELOG.md
  5. index.d.ts
  6. index.js
  7. LICENSE
  8. package.json
  9. README.md
  10. tsconfig.json
node_modules/is-async-function/README.md

is-async-function Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Is this a native async function?

Example

var isAsyncFunction = require('is-async-function');
assert(!isAsyncFunction(function () {}));
assert(!isAsyncFunction(null));
assert(!isAsyncFunction(function* () { yield 42; return Infinity; }));
assert(isAsyncFunction(async function () {}));

Tests

Simply clone the repo, npm install, and run npm test