dist/webdb.umd.js
function getLowerBoundMatcher(compare, query) {
		// No lower bound
		if (!query.hasOwnProperty('$gt') && !query.hasOwnProperty('$gte')) {
			return function(){return true;};
		}
		if (query.hasOwnProperty('$gt') && query.hasOwnProperty('$gte')) {
			if (compare(query.$gte, query.$gt) === 0) {
				return function (key) { return compare(key, query.$gt) > 0; };
			}
			if (compare(query.$gte, query.$gt) > 0) {
				return function (key) { return compare(key, query.$gte) >= 0; };
			} else {
				return function (key) { return compare(key, query.$gt) > 0; };
			}
		}
		if (query.hasOwnProperty('$gt')) {
			return function (key) { return compare(key, query.$gt) > 0; };
		} else {
			return function (key) { return compare(key, query.$gte) >= 0; };
		}
	}
function getLowerBoundMatcher(compare, query) {
		// No lower bound
		if (!query.hasOwnProperty('$gt') && !query.hasOwnProperty('$gte')) {
			return function(){return true;};
		}
		if (query.hasOwnProperty('$gt') && query.hasOwnProperty('$gte')) {
			if (compare(query.$gte, query.$gt) === 0) {
				return function (key) { return compare(key, query.$gt) > 0; };
			}
			if (compare(query.$gte, query.$gt) > 0) {
				return function (key) { return compare(key, query.$gte) >= 0; };
			} else {
				return function (key) { return compare(key, query.$gt) > 0; };
			}
		}
		if (query.hasOwnProperty('$gt')) {
			return function (key) { return compare(key, query.$gt) > 0; };
		} else {
			return function (key) { return compare(key, query.$gte) >= 0; };
		}
	}
function getLowerBoundMatcher ( compare , query ) { // No lower bound if ( ! query . hasOwnProperty ( '$gt' ) && ! query . hasOwnProperty ( '$gte' ) ) { return function ( ) { return true ; } ; } if ( query . hasOwnProperty ( '$gt' ) && query . hasOwnProperty ( '$gte' ) ) { if ( compare ( query . $gte , query . $gt ) === 0 ) { return function ( key ) { return compare ( key , query . $gt ) > 0 ; } ; } if ( compare ( query . $gte , query . $gt ) > 0 ) { return function ( key ) { return compare ( key , query . $gte ) >= 0 ; } ; } else { return function ( key ) { return compare ( key , query . $gt ) > 0 ; } ; } } if ( query . hasOwnProperty ( '$gt' ) ) { return function ( key ) { return compare ( key , query . $gt ) > 0 ; } ; } else { return function ( key ) { return compare ( key , query . $gte ) >= 0 ; } ; } }
Return a function that tells whether a given key matches a lower bound
Return a function that tells whether a given key matches a lower bound