言語

キーボード

Debounce

Delay invocation until activity stops for a given wait period.

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

残り時間5:00
スコア0
自動プレイヤーFluxSpark687
function debounce(fn, wait) {
  let timer = null;
  return function debounced(...args) {
    if (timer) clearTimeout(timer);
    timer = setTimeout(() => {
      fn.apply(this, args);
      timer = null;
    }, wait);
  };
時間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
,
.
/
スペース

ランキング

まだ結果がありません。