@scdev/is-async-function
v1.2.1
Published
Simple package to check if a function is either an AsyncFunction or not
Downloads
10
Maintainers
Readme
is-async-function
This package check if function provided is an AsyncFunction returning true/false.
Installation
npm i --save @scdev/is-async-function
# OR
yarn add @scdev/is-async-function
Usage
const isAsyncFunction = require('@scdev/is-async-function');
isAsyncFunction(() => {}) // false
isAsyncFunction(async () => {}) // true
Contributing
Project is pretty simple and straight forward for what is my needs, but if you have any idea you're welcome.
This projects uses commitizen so be sure to use standard commit format or PR won't be accepted
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'feat(scope): some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License
Distributed under the MIT License. See LICENSE
for more information.
Contact
Simone Corsi - @im_simonecorsi