Object and Unknown Types
Learn the difference between using the object and unknown types in TypeScript.
We'll cover the following...
The object
type
TypeScript introduces the object
type to cover types that are not primitive
types. This includes any type that is not number
, boolean
, string
, null
, symbol
, or undefined
.
Consider the following code:
Access this course and 1400+ top-rated courses and projects.