Replace lodash/map with array equivalent (#7550)

* Replace lodash/map with array equivalent

* Fix review comments
This commit is contained in:
Daniel Tschinder
2018-03-12 11:03:03 +01:00
committed by GitHub
parent 29807837bb
commit 9d2d499760

View File

@@ -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);
},
/**