Skip to main content


Deno standard library
Go to Latest
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.import type { Range, SemVer } from "./types.ts";import { rangeMax } from "./range_max.ts";import { greaterThan } from "./greater_than.ts";
/** * Checks to see if the version is greater than all possible versions of the range. * @deprecated (will be removed in 0.219.0) See * {@link | deno_std#4273} * for details. */export function gtr( version: SemVer, range: Range,): boolean { return greaterThan(version, rangeMax(range));}