I have two multidimensional arrays:

first is something like `(['one','one','three'],['four','five',five'],['one','one','one'])`

and the second one is like this `(['one','one','nine'],['one','one','one'],['two','two'],['two','two','two']...)`

Now, what I want is to find match first index of first array with second array, but position of at least first two indexes from boths array must match also, eg.:

first\_array (**['one','one','three']**,['four','five',five'],['one','one','one'])

will match

second\_array (**['one','one','nine']**,['one','one','one'],['two','two']['two','two','two']...)

and output would be eg. 'alert('Match.').

I have tried 

```
for(i=0; i<1; i++){
    if(first_array[0] == second_array) console.log('Match');
    else console.log('No match');
}

```

but I constantly get 'No match' although there is a match.
P.S. in 'for' loop, my i is i<1 because I want to compare only first index of first\_array with complete second\_array.

Thanks in advance