Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (17 sloc) 746 Bytes

Home > @thi.ng/api > ICompare > compare

ICompare.compare() method

Compares this value with given value x. MUST follow same contract as Comparator.

Signature:

compare(x: T): number;

Parameters

Parameter Type Description
x T compare value

Returns:

number

Remarks

MUST return 0 if the type also implements IEquiv and equiv returns true for same x.

Also see IHash.

You can’t perform that action at this time.