Sobes.tech
Junior — Senior

Checking the equivalence of element sets in arrays

livecode

Task condition

Implement a function that determines whether the elements of two arrays are the same, ignoring their order.

 //checkSimilarity([0,1,2], [2,1,0]) === true
 //checkSimilarity([0,1], [2,1,0]) === false
 //checkSimilarity([0,5,1], [0,1,5]) === true

checkSimilarity(arrA, arrB)

function checkSimilarity(arrA, arrB) {
    
}