code: function isWindow(obj) {
    return obj && obj.document && obj.location && obj.alert && obj.setInterval;
  }
docs: Checks if `obj` is a window object.
  
  @private
  @param {*} obj Object to check
  @returns {boolean} True if `obj` is a window obj.