Remove uses of lodash/compact (#5181)

This commit is contained in:
Andres Suarez 2017-02-04 16:01:45 -05:00 committed by Logan Smyth
parent b845f2b69d
commit 8c3392f058

View File

@ -1,5 +1,4 @@
import toFastProperties from "to-fast-properties";
import compact from "lodash/compact";
import loClone from "lodash/clone";
import uniq from "lodash/uniq";
@ -398,7 +397,10 @@ export function inheritInnerComments(child: Object, parent: Object) {
function _inheritComments(key, child, parent) {
if (child && parent) {
child[key] = uniq(compact([].concat(child[key], parent[key])));
child[key] = uniq(
[].concat(child[key], parent[key])
.filter(Boolean)
);
}
}