1,Object.is() /* ES6 PolyFill */

if(!Object.js){
  Object.is=function(x,y){
    if(x===y){
      return x!==0 || 1/x===1/y
    }else{
      return x!==x && y!==y
    }
  }
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
  • 2021-05-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-03-06
  • 2022-12-23
  • 2021-09-16
  • 2021-12-02
  • 2021-07-19
  • 2022-01-15
  • 2022-12-23
相关资源
相似解决方案