$ npm install is-async-function
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
© 2010 - cnpmjs.org x YWFE | Home | YWFE