Compare a matriz devida di numeri javascript
function arraysContainSame(a, b) { a = Array.isArray(a) ? a : []; b = Array.isArray(b) ? b : []; return a.length === b.length && a.every(el => b.includes(el)); }
Depressed Dingo