Skip to main content
The Deno 2 Release Candidate is 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.153.0/semver/mod.ts";

Return true if any of the ranges comparators intersect

Parameters

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

Returns

boolean