Skip to content

Commit

Permalink
chore: fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Jun 27, 2024
1 parent 0001c79 commit c60a1a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/object/invert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
export function invert<
TKey extends string | number | symbol,
TValue extends string | number | symbol
>(
obj: Record<TKey, TValue>
): Record<TValue, TKey> {
>(obj: Record<TKey, TValue>): Record<TValue, TKey> {
if (!obj) return {} as Record<TValue, TKey>
const keys = Object.keys(obj) as TKey[]
return keys.reduce((acc, key) => {
Expand Down
2 changes: 1 addition & 1 deletion src/object/shake.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/
export function shake<T extends object>(
obj: T,
filter: (value: T[keyof T]) => boolean = (value) => value === undefined
filter: (value: T[keyof T]) => boolean = value => value === undefined
): T {
if (!obj) return {} as T
const keys = Object.keys(obj) as (keyof T)[]
Expand Down

0 comments on commit c60a1a6

Please sign in to comment.