Javascript Function Compare 2 URLS Same Ignore Trailing Slash /

Javascript Function to Compare if 2 URLS are the Same Ignoring Trailing Path Slash / Ignore Query String, Ignoring Hash

Home Short:
S
H
A
R
E