Module

std/semver/mod.ts>compareBuild

Deno standard library
Go to Latest
function compareBuild
import { compareBuild } from "https://dotland.deno.dev/std@0.181.0/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