QdabuliuQ
QdabuliuQ
```javascript function convey(arr) { let res = [] let i = 0 while(i < arr.length) { let j = i while(j < arr.length-1 && arr[j] === arr[j+1]-1) { j ++...
```javascript class TaskQueue { constructor() { this.queue = [] } add(time, fn, ...args) { let p = () => { return new Promise((resolve) => { setTimeout(() => { resolve(fn(...args)) },...
```javascript class Heap { constructor(arr, compare) { this.arr = arr this.compare = compare this.heapify() } get size() { return this.arr.length } swap(i, j) { [this.arr[i], this.arr[j]] = [this.arr[j], this.arr[i]] }...
``` Array.prototype.flat = function(deep = 1) { if(deep { if(deep
这个bug出现在 rc-virtual-list 当中的 useScrollDrag hook 中; @MadCcc @thinkasany 大佬review下; rc-virtual-list pr: [https://github.com/react-component/virtual-list/pull/328](https://github.com/react-component/virtual-list/pull/328)
@fizzyfly 这个问题主要是 rc / virtual-list 组件里面出现,同样的bug在 tree 组件并且是虚拟滚动的情况下同样存在
```javascript function convey(data) { let map = new Map() for (let item of data) { for (let cate of item.categories) { if (!map.has(cate)) { map.set(cate, { name: cate, categories: [item.name]...