Mohammad Asif cf937194cb Removed un-waned things 1. | 5 meses atrás | |
---|---|---|
.. | ||
test | 5 meses atrás | |
.eslintrc | 5 meses atrás | |
.nycrc | 5 meses atrás | |
CHANGELOG.md | 5 meses atrás | |
LICENSE | 5 meses atrás | |
README.md | 5 meses atrás | |
index.js | 5 meses atrás | |
package.json | 5 meses atrás |
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