title: compare single dimensional Array with Multidimensional array in javascript
body: <p>I am using javascript to compare a single array and a multidimensional array.
  Here i want to compare those 2 array and the matched value should be shown.</p>
  
  <ul>
  <li><code>arr[1,2,3]</code> value to be searched in multidimensional array " md2 ".</li>
  </ul>
  
  <p>This is my Code :: i have taken an single array and other as multidimensional array</p>
  
  <pre><code>var arr = [1,2,3];
  var md2 = [[23,8,2],[1,5,8],[1,2,3],[8,5,2]];
  for(var j=0; j&lt;md2.length ; j++){
    if(arr == md2[j]){
      console.log(arr + " ... " + md2[j]);
    }
  }
  </code></pre>
  
  <p>Required O/P :- <code>[1,2,3]</code> should match and should be displayed in the console</p>