Lingue

Tastiera

Pick Utility

Build a narrow type from an object subset.

Difficolta: Principiante · 10 Righe · Licenza: public-domain

Tempo Rimasto5:00
Punteggio0
Giocatore AutoTurboPulse826
function pick<T extends object, K extends keyof T>(
  source: T,
  keys: readonly K[]
): Pick<T, K> {
  const result = {} as Pick<T, K>;
  for (const key of keys) {
    result[key] = source[key];
  }
  return result;
Tempo0:00
Velocita (WPM)0.0
Precisione100.0%
Errori0

Tastiera Live

Prossimo Tasto: F | Ultimo Tasto: -

Progresso: 0.0%
\
1
2
3
4
5
6
7
8
9
0
'
Ì
Q
W
E
R
T
Y
U
I
O
P
È
+
A
S
D
F
G
H
J
K
L
Ò
À
Z
X
C
V
B
N
M
,
.
-
Spazio

Classifica

Nessun risultato.