title: Extract this nested ternary operation into an independent statement
body: <p>I am getting the above error with the example code below, I am quite new to nested ternary operations so your help would be appreciated.
  Example code below:</p>
  <pre><code>Car4 = {
    data: {
      CoverBasis: item.coverBasis() || &quot;Client&quot;,
      IncludeInPackage: item.canBeIncludedInPackage() ?
        (item.includeInPackage() &amp;&amp; totalPolicies &gt; 1 ? &quot;Yes&quot; : &quot;No&quot;) : &quot;No&quot;
    }
  };
  
  </code></pre>