function arrayContains(list, element) {
    var index = list.indexOf(element);

    return index;
}
//Function to get the index of an element inside an array
Function to get the index of an element inside an array
Function to get the index of an element inside an array
function arrayContains(list, element) {
    var index = list.indexOf(element);
    return index;
}
function arrayContains ( list , element ) { var index = list . indexOf ( element ) ; return index ; }
Function to get the index of an element inside an array
Function to get the index of an element inside an array