Function
Static Public Summary | ||
public |
decreasing(a: any, b: any): number Compare two values in decreasing order using the native comparison and equality operators. |
|
public |
increasing(a: any, b: any): number Compare two values in increasing order using the native comparison and equality operators. |
Static Public
public decreasing(a: any, b: any): number source
import decreasing from '@total-order/primitive/src/decreasing.js'
Compare two values in decreasing order using the native comparison and equality operators.
Params:
Name | Type | Attribute | Description |
a | any | The first parameter. |
|
b | any | The second parameter. |
public increasing(a: any, b: any): number source
import increasing from '@total-order/primitive/src/increasing.js'
Compare two values in increasing order using the native comparison and equality operators.
Params:
Name | Type | Attribute | Description |
a | any | The first parameter. |
|
b | any | The second parameter. |