Comparable Namespace

    Package: @esfx/equatable

    Utility functions and well-known symbols used to define a Comparable.

    Functions

    hasInstance(value)

    Determines whether a value is Comparable.

    Declaration
    function hasInstance(value: unknown): value is Comparable;
    Parameters
    value
    unknown

    The value to test.

    Returns
    value is Comparable

    true if the value is a Comparable; otherwise, false.

    Variables

    compareTo

    A well-known symbol used to define a relational comparison method on a value.

    Declaration
    compareTo: unique symbol

    name

    Declaration
    name = "Comparable"
    Generated by DocFX