src/utils.js
function _checkKeysFromFirstAreInSecond(first, second) {
    for (var key in first) {
        if (!(key in second)) {
            return false;
        }

        var value1 = first[key];
        var value2 = second[key];

        if (!deepEquals(value1, value2)) {
            return false;
        }
    }

    return true;
}
function _checkKeysFromFirstAreInSecond(first, second) {
    for (var key in first) {
        if (!(key in second)) {
            return false;
        }

        var value1 = first[key];
        var value2 = second[key];

        if (!deepEquals(value1, value2)) {
            return false;
        }
    }

    return true;
}
function _checkKeysFromFirstAreInSecond ( first , second ) { for ( var key in first ) { if ( ! ( key in second ) ) { return false ; } var value1 = first [ key ] ; var value2 = second [ key ] ; if ( ! deepEquals ( value1 , value2 ) ) { return false ; } } return true ; }
Checks that the keys which are in the first object are also in the second object,
and that they have the same value in both places.

@param {object} first - The first object to check
@param {object} second - The second object to check
@returns {boolean} True if all of the keys from the first are present and equal in the second
Checks that the keys which are in the first object are also in the second object and that they have the same value in both places .