title: JavaScript equivalent of PHP function: array_flip
body: <p>Is there any shortcut to accomplishing the equivalent of <a href="http://www.php.net/manual/en/function.array-flip.php" rel="noreferrer">PHP's array_flip function</a> in JavaScript or does it have to be done via brute force looping? </p>
  
  <p>It has to be used for dozens of arrays so even small speedups will probably add up.</p>