Runs a series of tests to return an object with browser data in it.

Since
  • 1.0.0
Returns:

An object with browser data as keys and true false as values: android, chrome, edge, firefox, ie, ios, iosMobile, opera, safari, os.

Type: 
object
Example
import { browsers } from  "@gravityforms/utils";

function Example() {
 const browser = browsers();
 return browser.ie || browser.firefox || ( browser.chrome && ! browser.edge )
     ? document.documentElement
     : document.body;
}