Class Comparable

Implements some standard methods for comparing objects. Add this mixin to any class you create that can compare its instances.

Hierarchy

Index

Methods

Methods

public compare(a: any, b: any): number

Parameters

  • a: any
  • b: any

Returns

number