src/compare.js
function(a, b, aParent, bParent, prop, compares, options){
		// if everything is the same OR doesn't have a property on the left or right (only)
		// and union values
		options.result = {};
		options.performedUnion = 0;
		options.checks = [
			compareHelpers.unionComparesType,
			addToResult(compareHelpers.equalBasicTypes, "equalBasicTypes"),
			addToResult(compareHelpers.unionArrayLike, "unionArrayLike"),
			addResultsToNewObject(compareHelpers.unionObject, "unionObject")
		];
		options.getUnions = [];

		options["default"] = false;

		var res = loop(a, b, aParent, bParent, prop, compares, options);
		if(res === true) {
			return options.result;
		}
		return false;
	}
function(a, b, aParent, bParent, prop, compares, options){
		// if everything is the same OR doesn't have a property on the left or right (only)
		// and union values
		options.result = {};
		options.performedUnion = 0;
		options.checks = [
			compareHelpers.unionComparesType,
			addToResult(compareHelpers.equalBasicTypes, "equalBasicTypes"),
			addToResult(compareHelpers.unionArrayLike, "unionArrayLike"),
			addResultsToNewObject(compareHelpers.unionObject, "unionObject")
		];
		options.getUnions = [];

		options["default"] = false;

		var res = loop(a, b, aParent, bParent, prop, compares, options);
		if(res === true) {
			return options.result;
		}
		return false;
	}
function ( a , b , aParent , bParent , prop , compares , options ) { // if everything is the same OR doesn't have a property on the left or right (only) // and union values options . result = { } ; options . performedUnion = 0 ; options . checks = [ compareHelpers . unionComparesType , addToResult ( compareHelpers . equalBasicTypes , "equalBasicTypes" ) , addToResult ( compareHelpers . unionArrayLike , "unionArrayLike" ) , addResultsToNewObject ( compareHelpers . unionObject , "unionObject" ) ] ; options . getUnions = [ ] ; options [ "default" ] = false ; var res = loop ( a , b , aParent , bParent , prop , compares , options ) ; if ( res === true ) { return options . result ; } return false ; }
A u B
A u B