Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Comparable<T>

Describes an object that is comparable to another object.

Type parameters

  • T

Hierarchy

  • Comparable

Index

Properties

Methods

Properties

compareTo

compareTo: unique symbol = Symbol("Comparable.compareTo")

Methods

[Comparable.compareTo]

  • [Comparable.compareTo](other: T): number
  • Compares this object with another object:

    • A negative value indicates this value is lesser.
    • A positive value indicates this value is greater.
    • A zero value indicates this value is the same.

    Parameters

    • other: T

    Returns number

Generated using TypeDoc