JavaScript iterate through 2D array and return the mismatches
问题 I have two 2D arrays, I want to compare them using JavaScript, ignore the matches and if there are mismatches to return the entire row into a new array. var array1 = [ ['52a1fd0296fc','DEF'], ['52a1fd0296fc','DEF'], ['52a1fd0296fc','DEF'], ['52a1fd0296fc','DEF'], [null,'ABC'], ['6f93cfa0106f','xxx'], ]; var array2 = [ ['52a1fd0296fc','ABC'], ['6f93cfa0106f','xxx'], ['52a1fd0296fc','ABC'], ['52a1fd0296fc','ABC'], ['52a1fd0296fc','DEF'], ['52a1fd0296fcasd','DEF'], ]; I want to take this output,