Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

std/semver/is_range.ts>isRange

The Deno Standard Library
Latest
function isRange
import { isRange } from "https://deno.land/std@0.224.0/semver/is_range.ts";

Does a deep check on the object to determine if its a valid range.

Objects with extra fields are still considered valid if they have at least the correct fields.

Adds a type assertion if true.

Parameters

value: unknown

The value to check if its a valid Range

Returns

value is Range

True if its a valid Range otherwise false.