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 testComparator
import { testComparator } from "https://deno.land/std@0.195.0/semver/test_comparator.ts";

Test to see if a semantic version falls within the range of the comparator.

Parameters

version: SemVer

The version to compare

comparator: SemVerComparator

The comparator

Returns

boolean

True if the version is within the comparators set otherwise false