Which of the following is faster?
<p>Which of the following is faster? And, just by the way, which would you personally prefer? (The position variable stores the CSS position of a DIV element.)</p>

<p><strong>1)</strong></p>

<pre><code>if (/(relative|absolute|fixed)/).test(position) { ... }
</code></pre>

<p><strong>2)</strong></p>

<pre><code>if (!(/^s/).test(position)) { ... }
</code></pre>

<p><strong>3)</strong></p>

<pre><code>if (position == 'relative' || position == 'absolute' || position == 'fixed') { ... }
</code></pre>

<p><strong>4)</strong></p>

<pre><code>if (position === 'relative' || position === 'absolute' || position === 'fixed') { ... }
</code></pre>

<p><strong>5)</strong></p>

<pre><code>if (position != 'static') { ... }
</code></pre>

<p><strong>6)</strong></p>

<pre><code>if (position !== 'static') { ... }
</code></pre>
