Skip to main content
Version: 22.4.0

getVersionComparator() function

Returns a version comparator for the given browser that can be used to sort browser versions.

Signature:

export declare function getVersionComparator(
browser: Browser
): (a: string, b: string) => number;

Parameters

ParameterTypeDescription
browserBrowser

Returns:

(a: string, b: string) => number