• import { checkActivePath } from '@src/hylo-components/utils/usefull/usefull';

    Checks whether the given href is part of the current url.

    Parameters

    • href: string

      a string which is checked against window.location.href

    • exact: boolean = false

      check not just for partial match but exact match

    • query: boolean = false

      takes the query string into account

    • exact_query: boolean = false

      if set, it is not enough that the href query parameters are a subset of the URL query parameters

    Returns boolean

Generated using TypeDoc