Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

std/semver/greater_than.ts

The Deno Standard Library
Go to Latest
File
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.// This module is browser compatible.
import type { SemVer } from "./types.ts";import { compare } from "./compare.ts";
/** * Greater than comparison * * This is equal to `compare(s0, s1) > 0`. */export function greaterThan(s0: SemVer, s1: SemVer): boolean { return compare(s0, s1) > 0;}