Blame view

天文台pc/tianwentai-ui/node_modules/recharts/es6/util/ShallowEqual.js 383 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  export function shallowEqual(a, b) {
    /* eslint-disable no-restricted-syntax */
    for (var key in a) {
      if ({}.hasOwnProperty.call(a, key) && (!{}.hasOwnProperty.call(b, key) || a[key] !== b[key])) {
        return false;
      }
    }
    for (var _key in b) {
      if ({}.hasOwnProperty.call(b, _key) && !{}.hasOwnProperty.call(a, _key)) {
        return false;
      }
    }
    return true;
  }