Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
function testComparator
Deprecated
Deprecated

(will be removed in 0.214.0) Use testRange instead.

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

The comparator

Returns

boolean

True if the version is within the comparators set otherwise false