Array.prototype.some not working with ternary operator : <p>Why do the following two snippets not return the same value?</p>

<pre><code>[1,2,3,4].some((el) =&gt; {
    if (el === 4) {
        return true;
    }
    else {
        return false;
    }
});
</code></pre>

<p>--> returns true</p>

<pre><code>[1,2,3,4].some((el) =&gt; {
    el === 4 ? true : false;
});
</code></pre>

<p>--> returns false</p>
