/* -------------------------------- ** FUNCTION: ** fnAreEquivalentArrays ** DESCRIPTION: ** This function tests whether two arrays contain ** exactly the same elements (regardless of whether ** those elements are in different orders) ** DEPENDENCIES: ** fnIsElementOfArray ** fnIsSubsetOfArray ** DATE: ** -------------------------------- */ function fnAreEquivalentArrays(aaArray1, aaArray2) { if (fnIsSubsetOfArray(aaArray1, aaArray2) && fnIsSubsetOfArray(aaArray2, aaArray1)) { return true; } else { return false; } } //-- fnAreEquivalentArrays