Skip to main content
Module

x/ts_morph/common/mod.ts>Comparer

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
interface Comparer
import { type Comparer } from "https://deno.land/x/ts_morph@15.1.0/common/mod.ts";

Compares two values specifying the sort order.

Methods

compareTo(a: T, b: T): number

Checks the two items returning -1 if a preceeds, 0 if equal, and 1 if a follows.