Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/neosiae/if-async-fn

Check if given function is ES2017 asynchronous function or not.
https://github.com/neosiae/if-async-fn

Last synced: 24 days ago
JSON representation

Check if given function is ES2017 asynchronous function or not.

Awesome Lists containing this project

README

        

# if-async-fn

[![Build Status](https://travis-ci.com/neosiae/if-async-fn.svg?branch=master)](https://travis-ci.com/neosiae/if-async-fn)

Check if given function is ES2017 asynchronous function or not.

## Install

> $ npm install if-async-fn

## Usage

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

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

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