Comparable Interface

    Package: @esfx/equatable

    Represents a value that can compare itself relationally with another value.

    Declaration
    export interface Comparable 

    Methods

    [Comparable.compareTo](other)

    Compares this value with another value, returning a value indicating one of the following conditions:

    • 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.

    Declaration
    [Comparable.compareTo](other: unknown): number;
    Parameters
    other
    unknown

    The other value to compare against.

    Returns
    number

    A number indicating the relational comparison result.

    Generated by DocFX