Skip to content

Commit

Permalink
Import only the needed functions
Browse files Browse the repository at this point in the history
  • Loading branch information
richardolsson committed Jan 5, 2025
1 parent f73e015 commit a8acc4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/omitUndefined.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import _ from 'lodash';
import { isUndefined, omitBy } from 'lodash';

/**
* Omits properties with `undefined` values from an object.
Expand All @@ -8,4 +8,4 @@ import _ from 'lodash';
*/
export const omitUndefined = (
obj: Record<string, unknown>
): Record<string, unknown> => _.omitBy(obj, _.isUndefined);
): Record<string, unknown> => omitBy(obj, isUndefined);

0 comments on commit a8acc4a

Please sign in to comment.