Skip to content

Commit

Permalink
Replace lodash 'values' usage with Object.values
Browse files Browse the repository at this point in the history
  • Loading branch information
jayaddison committed Jul 4, 2020
1 parent 386ed2e commit 9fd3679
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/babel-plugin-transform-block-scoping/src/index.js
Expand Up @@ -2,7 +2,6 @@ import { declare } from "@babel/helper-plugin-utils";
import type NodePath from "@babel/traverse";
import type Scope from "@babel/traverse";
import { visitor as tdzVisitor } from "./tdz";
import values from "lodash/values";
import extend from "lodash/extend";
import { traverse, template, types as t } from "@babel/core";

Expand Down Expand Up @@ -545,7 +544,7 @@ class BlockScoping {
this.hoistVarDeclarations();

// turn outsideLetReferences into an array
const args = values(outsideRefs).map(id => t.cloneNode(id));
const args = Object.values(outsideRefs).map(id => t.cloneNode(id));
const params = args.map(id => t.cloneNode(id));

const isSwitch = this.blockPath.isSwitchStatement();
Expand Down

0 comments on commit 9fd3679

Please sign in to comment.