Skip to content
This repository has been archived by the owner on Dec 14, 2020. It is now read-only.

Commit

Permalink
ci(tslint): Fixes linting error.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryasmi committed Mar 22, 2019
1 parent 1a2ce0d commit 6b9338c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/pickDefined.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { pickBy } from 'lodash';
import { isUndefined, pickBy } from 'lodash';

export function pickDefined<V extends object>(obj: V) {
return pickBy(obj, function (value) {
return value !== undefined;
return !isUndefined(value);
});
}

0 comments on commit 6b9338c

Please sign in to comment.