estree-is-function
Version:
check if an AST node is a function of some sort
35 lines (25 loc) • 965 B
Markdown
if an AST node is a function of some sort.
[![npm][npm-image]][npm-url]
[![travis][travis-image]][travis-url]
[![standard][standard-image]][standard-url]
[ ]: https://img.shields.io/npm/v/estree-is-function.svg?style=flat-square
[ ]: https://www.npmjs.com/package/estree-is-function
[ ]: https://img.shields.io/travis/goto-bus-stop/estree-is-function.svg?style=flat-square
[ ]: https://travis-ci.org/goto-bus-stop/estree-is-function
[ ]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square
[ ]: http://npm.im/standard
```
npm install estree-is-function
```
```js
var isFunction = require('estree-is-function')
isFunction(parse('function a () {}')) // true
isFunction(parse('(function () {})')) // true
isFunction(parse('(() => {})')) // true
isFunction(parse('var x')) // false
```
[ ](LICENSE.md)
check