Go to Latest
function testComparator
import { testComparator } from "https://dotland.deno.dev/std@0.192.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