Rapport-Laravel/node_modules/estree-is-function
Ravi Gulhane 070be631f6 Laravel 13 May 2026-05-13 16:32:55 +05:30
..
.travis.yml Laravel 13 May 2026-05-13 16:32:55 +05:30
LICENSE.md Laravel 13 May 2026-05-13 16:32:55 +05:30
README.md Laravel 13 May 2026-05-13 16:32:55 +05:30
index.js Laravel 13 May 2026-05-13 16:32:55 +05:30
package.json Laravel 13 May 2026-05-13 16:32:55 +05:30
test.js Laravel 13 May 2026-05-13 16:32:55 +05:30

README.md

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