When i console two arrays below is how it look
aa= [0: "349",1: "810",2: "863",3: "657",4: "602",5: "317",6: "665",7: "865",8: "624",9: "805",10: "887",11: "659"];
bb=[0: "349", 1: ""];
cc=find_flight(aa,bb);
in both arrays 349 is matching, once match it should return 1. Below is how i tried
function find_flight(aa,bb)
{
if(a2.toString() == a1.toString())
{
return true;
}
}
console.log(aa+'-'+bb);
Output: 349,810,863,657,602,317,665,865,624,805,887,659-349,
Its not matching can any one give solution !!!!