Deriving Types From Values 15 exercises

Pass a Primitive to an Indexed Access Type

If you think about it, the keys of the programModes array are 0, 1, 2, 3, 4, and 5:

export const programModes = [
] as const;

For example, we can access the first element of

Loading solution