// if not nested arrays function checkEquals(arr1, arr2) { return arr1.every( el => arr2.includes(el) ); };