function areEqual( urlA, urlB ) {
	// Make sure we are comparing URLs without query arguments and hashes.
	urlA = removeQueryArgs( removeHash( urlA ) );
	urlB = removeQueryArgs( removeHash( urlB ) );

	return addTrailingSlash( urlA ) === addTrailingSlash( urlB );
}
function areEqual( urlA, urlB ) {
	
	urlA = removeQueryArgs( removeHash( urlA ) );
	urlB = removeQueryArgs( removeHash( urlB ) );

	return addTrailingSlash( urlA ) === addTrailingSlash( urlB );
}
function areEqual ( urlA , urlB ) { // Make sure we are comparing URLs without query arguments and hashes. urlA = removeQueryArgs ( removeHash ( urlA ) ) ; urlB = removeQueryArgs ( removeHash ( urlB ) ) ; return addTrailingSlash ( urlA ) === addTrailingSlash ( urlB ) ; }
Returns whether or not the given URLs are equal.

@param {string} urlA The first URL to compare.
@param {string} urlB The second URL to compare.

@returns {boolean} Whether or not the given URLs are equal.
Returns whether or not the given URLs are equal .