2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-17 19:21:29 +03:00

refactor: use spread operator instead of '.apply()' (#6938)

Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
Noritaka Kobayashi
2025-07-06 23:59:56 +09:00
committed by GitHub
parent a1d16dd9c5
commit 6161947d9d
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ function throttle(fn, freq) {
clearTimeout(timer);
timer = null;
}
fn.apply(null, args);
fn(...args);
}
const throttled = (...args) => {