Interface KoconutComparable

Classes which inherit from this protocol have a defined total ordering between their instances

Hierarchy

  • KoconutComparable

Implemented by

Methods

Methods

  • Compares this instance with the target object. Result can be either simple number or KoconutPrimitive instance wrapping number value.

    Returns zero            -- This object equals to other.
    Returns negative number -- This object is less than other.
    Returns positive number -- This object is grater than other.
    

    Parameters

    • other: any

      Target instance to compare.

    Returns number | KoconutPrimitive<number>

Generated using TypeDoc