We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26bebb8 commit ad204f5Copy full SHA for ad204f5
src/module-3/quiz.ts
@@ -1,8 +1,8 @@
1
-function getArrayItem<T, K extends keyof T>(
+function getArrayItem<T, K extends keyof T>( // what is the value of K here?
2
arr: T[],
3
index: number,
4
key: K
5
-): T[K] {
+): T[K] { // what does T[K] mean?
6
const item = arr[index];
7
8
// console.log(item, "\n", item[key]);
0 commit comments