Add docs for `Parser#isBrowser`

pull/362/head
Denis Demchenko 5 years ago
parent 69972820c8
commit 4b658441ca

@ -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()];

Loading…
Cancel
Save