Skip to main content
Module

std/semver/mod.ts>outside

Deno standard library
Go to Latest
function outside
import { outside } from "https://deno.land/std@0.152.0/semver/mod.ts";

Return true if the version is outside the bounds of the range in either the high or low direction. The hilo argument must be either the string '>' or '<'. (This is the function called by gtr and ltr.)

Parameters

version: string | SemVer
range: string | Range
hilo: ">" | "<"
optional
options: Options

Returns

boolean