Skip to main content
Go to Latest
function maxSatisfying
import { maxSatisfying } from "";

Returns the highest version in the list that satisfies the range, or undefined if none of them do.


versions: SemVer[]

The versions to check.

The range of possible versions to compare to.


SemVer | undefined

The highest version in versions that satisfies the range.