(x: any, y: any)
| 20 | } |
| 21 | |
| 22 | function is(x: any, y: any): boolean { |
| 23 | // From: https://github.com/facebook/fbjs/blob/c69904a511b900266935168223063dd8772dfc40/packages/fbjs/src/core/shallowEqual.js |
| 24 | if (x === y) { |
| 25 | return x !== 0 || 1 / x === 1 / y |
| 26 | } else { |
| 27 | return x !== x && y !== y |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | // based on https://github.com/mridgway/hoist-non-react-statics/blob/master/src/index.js |
| 32 | const hoistBlackList = { |