CodeZettaInterview Hub

TypeScript · Utility Types · Junior · Concept

Record<K, V> use cases?

Short Interview Answer

Object type with keys K and values V — dictionaries and maps of known keys.

Detailed Explanation

Prefer Map at runtime when keys are dynamic/frequent add-delete. Record is a type.

Did you know this answer?