@babel/types
Version:
Babel Types is a Lodash-esque utility library for AST nodes
16 lines (13 loc) • 383 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = isVar;
var _index = require("./generated/index.js");
var BLOCK_SCOPED_SYMBOL = Symbol.for("var used to be block scoped");
function isVar(node) {
return (0, _index.isVariableDeclaration)(node, {
kind: "var"
}) && !node[BLOCK_SCOPED_SYMBOL];
}
//# sourceMappingURL=isVar.js.map