Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/semver/eq.ts>eq

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function eq
import { eq } from "https://deno.land/std@0.195.0/semver/eq.ts";

Returns true if they're logically equivalent, even if they're not the exact same version object.

Returns

boolean

Parameters

s0: string | SemVer
s1: string | SemVer
optional
options: { includePrerelease: boolean; }

Returns

boolean