Module

std/semver/mod.ts>maxSatisfying

Deno standard library
Go to Latest
function maxSatisfying
import { maxSatisfying } from "https://dotland.deno.dev/std@0.181.0/semver/mod.ts";

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

Type Parameters

T extends string | SemVer

Parameters

versions: ReadonlyArray<T>
range: string | Range
optional
options: Options

Returns

T | null