Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

std/semver/mod.ts>equals

The Deno Standard Library
Latest
The Standard Library has been moved to JSR. See the blog post for details.
function equals
import { equals } from "https://deno.land/std@0.224.0/semver/mod.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.

Returns

boolean