Javascript array Swapping
<p>I have javascript array </p>

<pre><code>var s=[{"1":"one"},{"2":"two"},{"3":"three"},{"ALL":"ALL"}];
</code></pre>

<p>Here i want to check the condition,If BMW is present in the array.I want to move this "BMW" to zero position and existing zeroth value moved next(ist position) to the ALL.</p>

<p>Please give some suggestions or answers for how to handle this scenario,</p>

<p>Thanks in Advance.</p>

<p>Chaitu</p>
