ToStringComparer

Namespace: TSUI.Collections
Extends: None
Implements: IComparer
Exported: Yes
JSDoc status: Complete

Associated source files:

Description

A comparer which compares the results of calling ToString on the specified objects.

Constructor

Default, empty constructor.

Methods

Compare(x: any, y: any): number;
Compares two objects by comparing the result of calling ToString on them.
  • x : The first object to be compared
  • y : The second object to be compared
  • Returns : the result of the comparison.
    • -1 if x < y;
    • 0 if x === y;
    • 1 if x > y;

Last edited Jun 9, 2013 at 3:56 PM by EdwardNutting, version 6

Comments

No comments yet.