|
|
||
|---|---|---|
| .. | ||
| .travis.yml | ||
| LICENSE.md | ||
| README.md | ||
| index.js | ||
| package.json | ||
| test.js | ||
README.md
estree-is-function
check if an AST node is a function of some sort.
Install
npm install estree-is-function
Usage
var isFunction = require('estree-is-function')
isFunction(parse('function a () {}')) // true
isFunction(parse('(function () {})')) // true
isFunction(parse('(() => {})')) // true
isFunction(parse('var x')) // false