Global

Methods

getBrowserName(returnId) → {string}

Method to get the Browser Name.
Parameters:
Name Type Description
returnId boolean The Method should return an Id (browser short name) instead of the Name (browser long name)
Source:
Returns:
The browser Name. Default ist unknown.
Type
string

getBrowserVersion() → {number}

Method to get the Browser Version.
Source:
Returns:
The browser Version. Default is 0.
Type
number

getOsName(returnId) → {string}

Method to get the Operating System Name.
Parameters:
Name Type Description
returnId boolean The Method should return an Id (OS short name) instead of the Name (OS long name)
Source:
Returns:
The OS Name. Default ist unknown.
Type
string

getOsVersion() → {object}

Method to get the Operating System Version.
Source:
Returns:
The OS Version . Default is 0. { 'string': '0', 'categories': { 'major': 0, 'minor': 0, 'bugfix': 0, } }
Type
object

isDeviceType(includes, excludes) → {boolean}

Method to detect Device Type.
Parameters:
Name Type Description
includes array | string The Device to match.
excludes array | string The Device should not match.
Source:
Returns:
The Device Type match status.
Type
boolean

isMatching(arr) → {boolean}

Method to detect Characters matching.
Parameters:
Name Type Description
arr array The Characters to match.
Source:
Returns:
The match status.
Type
boolean

isSupported() → {boolean}

Method to detect supported Browser.
Source:
Returns:
The supported Browser match status.
Type
boolean

removeEmptyValuesFromArray(arr) → {array}

Method to remove empty Values from a Array.
Parameters:
Name Type Description
arr array The Array to remove empty Values.
Source:
Returns:
The new Array without empty Values.
Type
array