Skip to main content
Module

std/semver/mod.ts>maxSatisfying

The Deno Standard Library
Latest
function maxSatisfying
import { maxSatisfying } from "https://deno.land/std@0.223.0/semver/mod.ts";

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

Parameters

versions: SemVer[]

The versions to check.

range: Range

The range of possible versions to compare to.

Returns

SemVer | undefined

The highest version in versions that satisfies the range.