// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.import{ compare }from"./compare.ts";importtype{SemVer}from"./types.ts"; /** * Returns `true` if both semantic versions are logically equivalent, even if they're not the exact same version object. * * This is equal to `compare(s0, s1) === 0`. */exportfunctionequals(s0:SemVer, s1:SemVer):boolean{returncompare(s0, s1)===0;}