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

std/semver/mod.ts>intersects

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

Returns true if the two supplied ranges or comparators intersect.

Parameters

range1: string | Range | Comparator
range2: string | Range | Comparator
optional
options: Options

Returns

boolean