is-es7-async-function
to check if a function is an es7 async-function
badges
Installation
npm install is-es7-async-funciton --save
Usage
const isEs7AsyncFunction = require('is-es7-async-funciton');
let fn = async function(){};
let anotherFn = function(){};
isEs7AsyncFunction(fn); //return true
isEs7AsyncFunction(anotherFn); //return false
License
MIT