Skip to main content
Module

std/semver/mod.ts>compareBuild

Deno standard library
Go to Latest
function compareBuild
import { compareBuild } from "https://deno.land/std@0.177.1/semver/mod.ts";

The same as compare but considers build when two versions are equal. Sorts in ascending order if passed to Array.sort().

Parameters

a: string | SemVer
b: string | SemVer
optional
options: Options

Returns

1 | 0 | -1