Using this code...
var a = [\'volvo\',\'random data\']; var b = [\'random data\']; var unique = $.grep(a, function(element) { return $.inArray(element, b
Convert both array to string and compare
if (JSON.stringify(a) == JSON.stringify(b)) { // your code here }