Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function comparatorIntersects
Re-export
import { comparatorIntersects } from "https://deno.land/std@0.199.0/semver/mod.ts";

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