Skip to main content
Go to Latest
function isSemVerComparator
import { isSemVerComparator } from "";

Does a deep check on the value to see if it is a valid SemVerComparator object.

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

Adds a type assertion if true.


value: unknown

The value to check if its a SemVerComparator


True if the object is a SemVerComparator otherwise false