how to find an element in one of three array and then return the parent array name?
<p>I am trying to check if an element exists in any one of three arrays. I don't know how to return the name of the array where the element was found. Can anyone direct me into the right direction please.</p>

<p>I have coded a function which takes the element in search as its argument and then returns the array name:</p>

<pre><code> var arr1 = ['a','b','c','d'];
 var arr2 = ['e','f','g','h'];
 var arr3 = ['i','j','k','l'];     

 function chkElem(elem)
 {
    var id = elem;
    var isFound = null;

    if(arr1.indexOf(id) || (arr2.indexOf(id) || (arr3.indexOf(id))))
    {
        isFound = ????      
    }
    return isFound;     
 }
</code></pre>

<p>I am uncertain how to assign the parent array name to 'isFound' variable. </p>

<p>Thanks.</p>
