-
**Object.assign 是否可替代 Immutable?**
结构共享指的是,根节点的引用改变,但对没修改的节点,引用依然指向旧节点。所以Object.assign 也能实现结构共享
见如下代码:
```
const objA = { a: 1, b: 2, c: 3 }
const objB = Object.assign({}, objA, { c: 4 })
ob…
-
-
Set 的一般可以用来去重:
var a = [1,2,3,4,1,2,3,4,3,2,1];
var b = new Set(a);//Set(4) {1, 2, 3, 4}
var arrB = [...b]或者Array.from(b);
Map的key可以使对象,普通的Oject的key只能是基本的值。
-
Hello,
I am experiencing an issue where my store is getting reset back to its default state (as defined in the constructor) when firing an initial action on the client. The store is using the `Immuta…
-
### What happened
Serializing a Map to JSON uses the `toString` form of the key, rather than the return value of `toJSON`.
It should behave like the idiom of serializing an ES2015 Map with `JS…
-
For anyone wanting their table to perform faster!
TLDR: precalculate your dataFormat functions!
I have a complex table with hundreds or thousands of rows and most of the columns have a dataForma…
-
-
**I'm submitting a ...**
```
[x ] bug report => check the FAQ and search github for a similar issue or PR before submitting
[ ] support request => check the FAQ and search github for a similar is…
-
I noticed very slow performance on one of my pages that uses react bootstrap table.
Specifically, when I type text into a field on my page, it is very slow for the text to appear. Of course reactjs…
-
**TypeScript Versions:** 3.5.1, 3.5.3 (currently `typescript@latest`), 3.6.0-beta (currently `typescript@beta`), 3.6.0-dev.20190808 (currently `typescript@next`)
**Search Terms:**
**Cod…