estree-is-function

1.0.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    674,231
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    674,231

Package Sidebar

Install

npm i estree-is-function

Weekly Downloads

674,231

Version

1.0.0

License

Apache-2.0

Last publish

Collaborators

  • goto-bus-stop