npm.io
1.0.0 • Published 8 years ago

estree-is-function

Licence
Apache-2.0
Version
1.0.0
Deps
0
Vulns
0
Weekly
0
Stars
2

estree-is-function

check if an AST node is a function of some sort.

npm travis standard

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

License

Apache-2.0

Keywords