$ gnpm 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
Copyright 2013 - present © cnpmjs.org | Home |