parseUserAgent
A convenience function to parse a user agent string and return the resulting information as a UAParserResult
Return
An instance of UAParserResult
containing the parsed information about the browser, CPU, device, engine, and OS
Parameters
userAgent
The user agent string to be parsed