undefined

The JavaScript value meaning not set: a variable with no value yet, a missing property or a function that returned nothing.

In more detail

Reading a property that does not exist gives undefined rather than an error. With strictNullChecks, TypeScript treats undefined as its own type that must be handled explicitly.

Example

In a patch payload, an omitted or undefined bio means leave the field unchanged, while bio: null means clear it

Related terms

Taught in

References