方法兼容

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
    }
  }
}

原文地址:https://www.cnblogs.com/colima/p/5258805.html