metreex-analysis.js
/**
 * Checks if arrays one and two are equal, having all of the same elements.
 * @param one
 * @param two
 * @returns {boolean} Returns true if the arrays are equal, and false if they are not equal. Also returns false if either array does not exist.
 */
Checks if arrays one and two are equal, having all of the same elements.
@param one
@param two
@returns {boolean} Returns true if the arrays are equal, and false if they are not equal. Also returns false if either array does not exist.
Checks if arrays one and two are equal having all of the same elements . @param one @param two @returns { boolean } Returns true if the arrays are equal and false if they are not equal . Also returns false if either array does not exist .
function checkArrayEquals(one, two){
    if (!one || !two) return false;
    if (one.length !== two.length) return false;
    if (!one instanceof Array || !two instanceof Array) return false;
    return (!one.some(function (elem, index) {  
        return elem !== two[index];              
    }));
}
function checkArrayEquals ( one , two ) { if ( ! one || ! two ) return false ; if ( one . length !== two . length ) return false ; if ( ! one instanceof Array || ! two instanceof Array ) return false ; return ( ! one . some ( function ( elem , index ) { return elem !== two [ index ] ; } ) ) ; }
Checks if arrays one and two are equal, having all of the same elements.
Checks if arrays one and two are equal having all of the same elements .
//Should catch most quick error cases //Some checks if elements pass text given by the function //Which simply checks if the elem is equal to the element in the corresponding array