言語

キーボード

Deep Clone

Recursively clone objects, arrays, and primitives.

難易度: 中級 · 13 行 · ライセンス: public-domain

残り時間5:00
スコア0
自動プレイヤーRapidCipher352
function deepClone(value) {
  if (value === null || typeof value !== 'object') {
    return value;
  }
  if (Array.isArray(value)) {
    return value.map(deepClone);
  }
  const copy = {};
  for (const key of Object.keys(value)) {
時間0:00
速度 (WPM)0.0
正確性100.0%
エラー0

ライブキーボード

次のキー: F | 最後のキー: -

進捗: 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
,
.
/
スペース

ランキング

まだ結果がありません。