joyz0

Results 3 comments of joyz0

> ```js > function debounce(callback, timeout, immediate) { > let timer; > return function () { > const context = this; // 持有执行上下文 > const args = arguments; // 记录传参...

期待这篇,官网描述的太难理解了。

```js function unique(arr) { if (!Array.isArray(arr)) throw new TypeError(); return [...new Set(arr)]; } ```