product_isversion.js
No description.

File Location

/goog/useragent/product_isversion.js


Public Protected Private

Global Functions

goog.userAgent.product.determineVersion_() string
No description.
Returns: string  The string that describes the version number of the user agent product. This is a string rather than a number because it may contain 'b', 'a', and so on.
code »
goog.userAgent.product.execRegExp_(re) Array
Run regexp's exec() on the userAgent string.
Arguments:
re : !RegExp
Regular expression.
Returns: Array  A result array, or null for no match.
code »
goog.userAgent.product.getFirstRegExpGroup_(re) string
Return the first group of the given regex.
Arguments:
re : !RegExp
Regular expression with at least one group.
Returns: string  Contents of the first group or an empty string if no match.
code »
goog.userAgent.product.isVersion(version) boolean
Whether the user agent product version is higher or the same as the given version.
Arguments:
version : string | number
The version to check.
Returns: boolean  Whether the user agent product version is higher or the same as the given version.
code »

Directory useragent

File Reference