• Checks whether the url fragment is equal to the fragment argument.

    Note that the validation of the url argument should be performed before passing the url argument to this validation.

    Example

    expect(isURLFragmentEqual(urlA, "/aa/bb/").value).toBeTruthy();
    

    Parameters

    • url: string

      The url string

    • fragment: string

      The fragment string

    Returns Result<boolean | undefined>

Generated using TypeDoc