How to do what would compare 1 with 1, 2 with 2 letter, but not 1 with all 2 lines
var array1 = "1234", array2 = "143421"; var cache; var cache2; var ln1 = array1.length ln2 = array2.length; for (var i = 0; i < ln1; ++i) { cache = array1[i]; for (var j = 0; j < ln2; ++j) { cache2 =array2[j]; if (cache == array2[j]) { console.log('найдено совпадение: ' + cache); break; } }