const d = [1,2,4,5,6]; const c = [1,2,4,5,6]; if (JSON.stringify(d) === JSON.stringify(c)) console.log('Equal!');