code: function getFriendlyBrowser(browserName) {
    browserName = browserName || "";
    if (typeof browserName === "string" && browserName) {
      if (browserName === "MicrosoftEdge") {
        browserName = "edge";
      }
      if (browserName === "internet explorer") {
        browserName = "ie";
      }
      else if (browserName === "iphone") {
        browserName = "safari";
      }
      else if (browserName === "android") {
        browserName = "browser";
      }
    }
    return browserName;
  }
docs: UTILITY & GENERATION CODE