Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/neosiae/if-async-fn
- Owner: neosiae
- License: mit
- Created: 2019-05-05T14:00:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-02-11T21:00:29.000Z (almost 3 years ago)
- Last Synced: 2024-10-01T13:18:18.736Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 126 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```