Skip to main content
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function testComparator
Deprecated
Deprecated

(will be removed in 0.213.0) Use compare instead.

import { testComparator } from "https://deno.land/std@0.211.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