I have 2 arrays, for example:
Array1: [One, Two, Three, Four, Five] Array2: [Three, Five]
I need to have a function which returns true if any values in Array2 match any values in Array1.
I have tried:
var compareArray = $.inArray(Array1, Array2);
but this always returns '-1'.