title: array_search Recursive in javascript
body: <pre><code>function array_searchRecursive( $needle, $haystack, $strict=false, $path=array() )
  {
      if( !is_array($haystack) ) {
          return false;
      }
  
      foreach( $haystack as $key =&gt; $val ) {
  
          if( is_array($val) &amp;&amp; $subPath = array_searchRecursive($needle, $val, $strict, $path) ) {
              $path = array_merge($path, array($key), $subPath);
  
              return $path;
          } else if( (!$strict &amp;&amp; $val == $needle) || ($strict &amp;&amp; $val === $needle) ) {
  
              $path[] = $key;
              return $path;
          }
      }
      return false;
  }
  </code></pre>
  
  <p>Do any body suggest me the same funcitonality, that can be implemented in javascript.
  reference <a href="http://www.php.net/manual/en/function.array-search.php#68424" rel="nofollow">http://www.php.net/manual/en/function.array-search.php#68424</a></p>