dist/app.a6a4d504.js
/*!
 * Determines if two objects have matching values, given a set of keys. Defers to deepEqual for the equality check of
 * each key. If any value of the given key is not equal, the function will return false (early).
 *
 * @param {Mixed} leftHandOperand
 * @param {Mixed} rightHandOperand
 * @param {Array} keys An array of keys to compare the values of leftHandOperand and rightHandOperand against
 * @param {Object} [options] (Optional)
 * @return {Boolean} result
 */
Determines if two objects have matching values, given a set of keys. Defers to deepEqual for the equality check of
each key. If any value of the given key is not equal, the function will return false (early).


Determines if two objects have matching values given a set of keys . Defers to deepEqual for the equality check of each key . If any value of the given key is not equal the function will return false ( early ) .
function keysEqual(leftHandOperand, rightHandOperand, keys, options) {
  var length = keys.length;
  if (length === 0) {
    return true;
  }
  for (var i = 0; i < length; i += 1) {
    if (deepEqual(leftHandOperand[keys[i]], rightHandOperand[keys[i]], options) === false) {
      return false;
    }
  }
  return true;
}
function keysEqual ( leftHandOperand , rightHandOperand , keys , options ) { var length = keys . length ; if ( length === 0 ) { return true ; } for ( var i = 0 ; i < length ; i += 1 ) { if ( deepEqual ( leftHandOperand [ keys [ i ] ] , rightHandOperand [ keys [ i ] ] , options ) === false ) { return false ; } } return true ; }
Determines if two objects have matching values, given a set of keys.
Determines if two objects have matching values given a set of keys .