title: Object.hasOwnProperty() yields the ESLint 'no-prototype-builtins' error: how to fix?
body: <p>I am using the following logic to get the i18n string of the given key.</p>
  
  <pre><code>export function i18n(key) {
    if (entries.hasOwnProperty(key)) {
      return entries[key];
    } else if (typeof (Canadarm) !== 'undefined') {
      try {
        throw Error();
      } catch (e) {
        Canadarm.error(entries['dataBuildI18nString'] + key, e);
      }
    }
    return entries[key];
  }
  </code></pre>
  
  <p>I am using ESLint in my project. I am getting the following error:</p>
  
  <blockquote>
    <p>Do not access Object.prototype method 'hasOwnProperty' from target object.
    It is a '<em>no-prototype-builtins</em>' error. </p>
  </blockquote>
  
  <p>How do I change my code to resolve this error ? I don't want to disable this rule.</p>