Vinyl
    Preparing search index...

    Function hasBrowser

    • Returns true if the current user agent matches the given browser.

      Parameters

      • browser: Browser
      • OptionalminVersionStr: Maybe<string>

        If provided, only returns true if the browser version is at least this version. Must be parsable by parseVersion.

      • OptionalmaxVersionStr: Maybe<string>

        If provided, only returns true if the browser version is at most this version. Must be parsable by parseVersion.

      • Optionaloptions: HasBrowserOptions

        Additional optional configuration.

      Returns boolean