Blame view

天文台pc/tianwentai-ui/node_modules/motion-dom/dist/es/render/utils/shallow-compare.mjs 384 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  function shallowCompare(next, prev) {
      if (!Array.isArray(prev))
          return false;
      const prevLength = prev.length;
      if (prevLength !== next.length)
          return false;
      for (let i = 0; i < prevLength; i++) {
          if (prev[i] !== next[i])
              return false;
      }
      return true;
  }
  
  export { shallowCompare };
  //# sourceMappingURL=shallow-compare.mjs.map