Skip to main content
Deno 2 is finally here 🎉️
Learn more
Extremely Popular
Go to Latest
function semver.comparatorIntersects
Re-export
import { semver } from "https://deno.land/x/fresh@1.5.3/src/dev/deps.ts";
const { comparatorIntersects } = semver;

Returns true if the range of possible versions intersects with the other comparators set of possible versions

Parameters

The left side comparator

The right side comparator

Returns

boolean

True if any part of the comparators intersect