Function
Static Public Summary | ||
public |
Compile a new comparison function whose underlying total order is the reverse of the input comparison function's underlying total order. |
Static Public
public reversed(compare: Function): Function source
import reversed from '@total-order/reversed/src/reversed.js'
Compile a new comparison function whose underlying total order is the reverse of the input comparison function's underlying total order.
Params:
Name | Type | Attribute | Description |
compare | Function | The comparison function to reverse. |