Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Hierarchy

  • KoconutComparable

Implemented by

Index

Methods

Methods

compareTo

  • compareTo(other: any): number | KoconutPrimitive<number>
  • Compares this instance with the target object. Result can be either simple number or {@link 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