const arr1 = [1, 2, 3];
const arr2 = [1, 2, 3];
const arr3 = [3, 2, 1];
if (JSON.stringify(arr1) == JSON.stringify(arr2) || JSON.stringify(arr1) == JSON.stringify(arr3)) {
alert('correct');
} else {
alert('not right');
}
$('#elem').html(`
<table>${[...Array(2)].map((n, iRow) => `
<tr>${[...Array(+columns)].map((m, iCol) => `
<td>${iRow + 1}.${iCol + 1}</td>`).join('')}
</tr>`).join('')}
</table>
`);