code: function getConstructorClassCheck(obj) {
      var ctorStr = String(obj);
      return function(obj) {
        return String(obj.constructor) === ctorStr;
      };
    }
docs: Map and Set may be [object Object] in certain IE environments. In this case we need to perform a check using the constructor instead of Object.prototype.toString. istanbul ignore next