function compSchemeHistory(history, scheme) {
  ignore = ['_id', 'version', 'schemeId'];

  for(key in history) {
    if (!_.contains(ignore, key) &&
        !_.isEqual(history[key], scheme[key])) {
      return false;
    }
  }
  return true;
}
//Takes a SchemeHistory and Scheme entry and returns true if they are the same
Takes a SchemeHistory and Scheme entry and returns true if they are the same
Takes a SchemeHistory and Scheme entry and returns true if they are the same
function compSchemeHistory(history, scheme) {
  ignore = ['_id', 'version', 'schemeId'];
  for(key in history) {
    if (!_.contains(ignore, key) &&
        !_.isEqual(history[key], scheme[key])) {
      return false;
    }
  }
  return true;
}
function compSchemeHistory ( history , scheme ) { ignore = [ '_id' , 'version' , 'schemeId' ] ; for ( key in history ) { if ( ! _ . contains ( ignore , key ) && ! _ . isEqual ( history [ key ] , scheme [ key ] ) ) { return false ; } } return true ; }
Takes a SchemeHistory and Scheme entry and returns true if they are the same
Takes a SchemeHistory and Scheme entry and returns true if they are the same