js/lib/utilities.js
function (left, right) {
        if (!left && !right) {
            return true;
        }
        var matches = true;

        for (var prop in right) {
            if (!right.hasOwnProperty(prop)) {
                continue;
            }
            matches &= (left[prop] == right[prop]);
        }
        return matches;
    }
function (left, right) {
        if (!left && !right) {
            return true;
        }
        var matches = true;

        for (var prop in right) {
            if (!right.hasOwnProperty(prop)) {
                continue;
            }
            matches &= (left[prop] == right[prop]);
        }
        return matches;
    }
function ( left , right ) { if ( ! left && ! right ) { return true ; } var matches = true ; for ( var prop in right ) { if ( ! right . hasOwnProperty ( prop ) ) { continue ; } matches &= ( left [ prop ] == right [ prop ] ) ; } return matches ; }
Iterates over the properties of the right object, checking to make
sure the properties on the left object match.
@param left
@param right
Iterates over the properties of the right object checking to make sure the properties on the left object match .