Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(website): store options TypeScript, Enable jsx and AST Viewer in…
… browser's local storage (#5769) * feat(website): store options TypeScript, Enable jsx and AST Viewer in browser's local storage * Apply suggestions from code review * fix: hasOwnProperty Co-authored-by: Josh Goldberg <git@joshuakgoldberg.com>
- Loading branch information
1 parent
1b91951
commit 77d2336
Showing
2 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export function hasOwnProperty< | ||
Container extends object, | ||
Key extends PropertyKey, | ||
>( | ||
property: Key, | ||
object: Container, | ||
): object is Container & Record<Key, unknown> { | ||
return property in object; | ||
} |