Have ideas to improve npm?Join in the discussion! »

if-async-fn

0.3.3 • Public • Published

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

Install

npm i if-async-fn

DownloadsWeekly Downloads

7

Version

0.3.3

License

MIT

Unpacked Size

2.4 kB

Total Files

4

Last publish

Collaborators

  • avatar