Skip to content

Commit

Permalink
Merge cc27fb2 into dd62cbb
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwynne committed Jul 20, 2021
2 parents dd62cbb + cc27fb2 commit 5090fe0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/value_checker.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export function doesHaveValue(value: any): boolean {
export function doesHaveValue<T>(value: T): boolean {
return !doesNotHaveValue(value)
}

export function doesNotHaveValue(value: any): boolean {
export function doesNotHaveValue<T>(value: T): boolean {
return value === null || value === undefined
}

Expand Down

0 comments on commit 5090fe0

Please sign in to comment.