<a href="#type-predicates">Type predicates</h3></a>
<p>Type predicates follow the same rules as <code>instanceof</code> when narrowing,
and are just as subject to misuse. So this example is equivalent to
the previous incorrect one:</p>
<p><pre class="typescript-code"><span class="tm-kw">function</span> <span class="tm-mth">isE</span>(<span class="tm-vr">e</span>: <span class="tm-typ">any</span>):<span class="tm-typ"> e </span><span class="tm-kw">is</span><span class="tm-typ"> <span class="error" tabindex="0