diff --git a/src/parser.js b/src/parser.js index f7ec7e9..a91b404 100644 --- a/src/parser.js +++ b/src/parser.js @@ -402,6 +402,12 @@ class Parser { return undefined; } + /** + * Check if the browser name equals the passed string + * @param browserName The string to compare with the browser name + * @param [includingAlias=false] The flag showing whether alias will be included into comparison + * @returns {boolean} + */ isBrowser(browserName, includingAlias = false) { const defaultBrowserName = this.getBrowserName(); const possibleNames = [defaultBrowserName.toLowerCase()];