title: What is the difference between addEditor(user) and addEditor(emailAddress)?
body: <p>This is what <a href="https://developers.google.com/apps-script/reference/spreadsheet/protection#addEditor(User)" rel="nofollow noreferrer">Google Documentation</a> says about:</p>
  
  <p><strong>addEditor(emailAddress):</strong> Adds the given user to the list of editors for the protected sheet or range. This method does not automatically give the user permission to edit the spreadsheet itself.</p>
  
  <p><strong>addEditor(user):</strong> Adds the given user to the list of editors for the protected sheet or range. This method does not automatically give the user permission to edit the spreadsheet itself.</p>
  
  <p>It's totally similar. What differentiates above 2 functions?</p>