<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Drew Hoover</title>
    <description>The latest articles on DEV Community by Drew Hoover (@drewhoo).</description>
    <link>https://dev.to/drewhoo</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F113474%2F6841a4cc-c81b-46e8-bea7-6343282325d5.png</url>
      <title>DEV Community: Drew Hoover</title>
      <link>https://dev.to/drewhoo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/drewhoo"/>
    <language>en</language>
    <item>
      <title>Least Confusing Way To Check Lots of Conditions</title>
      <dc:creator>Drew Hoover</dc:creator>
      <pubDate>Wed, 13 Nov 2019 15:29:23 +0000</pubDate>
      <link>https://dev.to/drewhoo/least-confusing-way-to-check-lots-of-conditions-5foo</link>
      <guid>https://dev.to/drewhoo/least-confusing-way-to-check-lots-of-conditions-5foo</guid>
      <description>&lt;p&gt;What is most clear and easy to read:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const myCondition = (a &amp;amp;&amp;amp; b) || (a &amp;amp;&amp;amp; c) || d || e;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;-- or --&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const myCondition = [a &amp;amp;&amp;amp; b, a &amp;amp;&amp;amp; c, d, e].some((cond) =&amp;gt; !!cond);
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Comment and tell me what you think! I tend to find lots of boolean logic difficult to read just because there are so many gotchas and I'm looking for better ways to write this kind of code.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
