diff options
Diffstat (limited to 'node_modules/@babel/traverse/lib/path/context.js')
| -rw-r--r-- | node_modules/@babel/traverse/lib/path/context.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node_modules/@babel/traverse/lib/path/context.js b/node_modules/@babel/traverse/lib/path/context.js index 78bbe6b8..c2f060d0 100644 --- a/node_modules/@babel/traverse/lib/path/context.js +++ b/node_modules/@babel/traverse/lib/path/context.js @@ -61,7 +61,7 @@ function _call(fns) { function isDenylisted() { var _this$opts$denylist; const denylist = (_this$opts$denylist = this.opts.denylist) != null ? _this$opts$denylist : this.opts.blacklist; - return denylist && denylist.indexOf(this.node.type) > -1; + return denylist == null ? void 0 : denylist.includes(this.node.type); } { exports.isBlacklisted = isDenylisted; |
