Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
TypeScript
/
Type guards
After checking "id" in value on a non-null object, what has been proved?
from Type guards
TypeScript 6
intermediate
1 min
After checking "id" in value on a non-null object, what has been proved?
The property is found on the object or its prototype chain, but its value and ownership are not proved.
id is an own, nonempty string property.
The complete object now matches every field of the target interface.
The check removes id from the object after the branch.
Check
Ask AI about this kata
Report an error
next kata
Why is declaring isSmallNumber(value): value is number unsafe when it returns false for n…
Quiz
A new version is available
Reload