prc b6c02717e6 Upload complete no-internet building environment. | 1 年之前 | |
---|---|---|
.. | ||
test | 1 年之前 | |
.eslintrc | 1 年之前 | |
.nycrc | 1 年之前 | |
CHANGELOG.md | 1 年之前 | |
LICENSE | 1 年之前 | |
README.md | 1 年之前 | |
index.js | 1 年之前 | |
package.json | 1 年之前 |
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