Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const formatUnsupported = (browser: string, versionAdded?: string, versionRemoved?: string): string => {
const browserName = getFriendlyName(browser);
if (versionAdded && versionRemoved) {
return `${browserName} ${versionRemoved}-${versionAdded}`;
} else if (versionAdded) {
return `${browserName} < ${versionAdded}`;
} else if (versionRemoved) {
return `${browserName} ${versionRemoved}+`;
}
return browserName;
};