Skip to content

Check if given function is ES2017 asynchronous function or not.

License

Notifications You must be signed in to change notification settings

neosiae/if-async-fn

Repository files navigation

if-async-fn

Build Status

Check if given function is ES2017 asynchronous function or not.

Install

$ npm install if-async-fn

Usage

const ifAsyncFn = require('if-async-fn')

ifAsyncFn(async () => ()) // true

ifAsyncFn(() => ()) // false

About

Check if given function is ES2017 asynchronous function or not.

Resources

License

Stars

Watchers

Forks

Packages

No packages published