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

x/xnd/symbols/compareTo.ts>default

JavaScript augmentations and supplements
Latest
variable default
import { default } from "https://deno.land/x/xnd@v3.0.2/symbols/compareTo.ts";

Compares a value to another value for order (returns zero for same, negative for before, and positive for after).

Values must implement Comparable. Xnd implements this interface for String, Number, BigInt, Boolean, and Date.

bigints[sort]();

type

symbol