estree-is-function
check if an AST node is a function of some sort
Last updated 3 years ago by goto-bus-stop .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install estree-is-function 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.0                                ...           latest (3 years ago)

1 Versions

  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 241
This Week 1,279
This Month 4,386
Last Day 248
Last Week 1,599
Last Month 6,601
Dependencies (0)
None
Dev Dependencies (3)
Dependents (2)

Copyright 2014 - 2017 © taobao.org |