Replace lodash/map with array equivalent (#7550)
* Replace lodash/map with array equivalent * Fix review comments
This commit is contained in:
parent
29807837bb
commit
9d2d499760
@ -1,4 +1,3 @@
|
||||
import map from "lodash/map";
|
||||
import * as t from "@babel/types";
|
||||
|
||||
type WhitespaceObject = {
|
||||
@ -220,7 +219,7 @@ export const list = {
|
||||
*/
|
||||
|
||||
VariableDeclaration(node: Object): Array<Object> {
|
||||
return map(node.declarations, "init");
|
||||
return node.declarations.map(decl => decl.init);
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user