zhibo/archive/extras/live-streaming/client/node_modules/is-async-function
2025-12-22 11:14:06 +08:00
..
test chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
.eslintrc chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
.nycrc chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
CHANGELOG.md chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
index.d.ts chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
index.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
LICENSE chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
package.json chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
README.md chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
tsconfig.json chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00

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