Skip to content

Commit

Permalink
Update guards.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Evan Sutherland <[email protected]>
  • Loading branch information
pleek91 and stackoverfloweth authored Jan 27, 2024
1 parent 0954cc7 commit eaf9298
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/utilities/guards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,3 @@ export function hasProperty<

return true
}

const test = { bar: true }

if (hasProperty(test, 'foo', Boolean)) {
test
}

0 comments on commit eaf9298

Please sign in to comment.