function shallowEqual(objA, objB) {
    if (objA === objB) {
        return true;
    }
    if (typeof objA !== 'object' || !objA || typeof objB !== 'object' || !objB) {
        return false;
    }
    /** @type {?} */
    var keysA = Object.keys(objA);
    /** @type {?} */
    var keysB = Object.keys(objB);
    if (keysA.length !== keysB.length) {
        return false;
    }
    /** @type {?} */
    var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB);
    // tslint:disable-next-line:prefer-for-of
    for (var idx = 0; idx < keysA.length; idx++) {
        /** @type {?} */
        var key = keysA[idx];
        if (!bHasOwnProperty(key)) {
            return false;
        }
        if (objA[key] !== objB[key]) {
            return false;
        }
    }
    return true;
}
/**
 * Examine if two objects are shallowly equaled.
 * @param {?=} objA
 * @param {?=} objB
 * @return {?}
 */
Examine if two objects are shallowly equaled.
Examine if two objects are shallowly equaled .
function shallowEqual(objA, objB) {
    if (objA === objB) {
        return true;
    }
    if (typeof objA !== 'object' || !objA || typeof objB !== 'object' || !objB) {
        return false;
    }
    var keysA = Object.keys(objA);
    var keysB = Object.keys(objB);
    if (keysA.length !== keysB.length) {
        return false;
    }
    var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB);
    for (var idx = 0; idx < keysA.length; idx++) {
        var key = keysA[idx];
        if (!bHasOwnProperty(key)) {
            return false;
        }
        if (objA[key] !== objB[key]) {
            return false;
        }
    }
    return true;
}
function shallowEqual ( objA , objB ) { if ( objA === objB ) { return true ; } if ( typeof objA !== 'object' || ! objA || typeof objB !== 'object' || ! objB ) { return false ; } var keysA = Object . keys ( objA ) ; var keysB = Object . keys ( objB ) ; if ( keysA . length !== keysB . length ) { return false ; } var bHasOwnProperty = Object . prototype . hasOwnProperty . bind ( objB ) ; for ( var idx = 0 ; idx < keysA . length ; idx ++ ) { var key = keysA [ idx ] ; if ( ! bHasOwnProperty ( key ) ) { return false ; } if ( objA [ key ] !== objB [ key ] ) { return false ; } } return true ; }
Examine if two objects are shallowly equaled.
Examine if two objects are shallowly equaled .
/** @type {?} */ /** @type {?} */ /** @type {?} */ // tslint:disable-next-line:prefer-for-of /** @type {?} */