Function
Static Public Summary | ||
public |
Compile an object key comparison function given key comparison function and a key function. |
|
public |
Compile an object length comparison function given a length comparison function. |
|
public |
Compile an object property comparison function given a property comparison function and a property key. |
Static Public
public key(compare: Function, callable: Function): Function source
import key from '@total-order/key/src/key.js'
Compile an object key comparison function given key comparison function and a key function.
public len(compare: Function): Function source
import len from '@total-order/key/src/len.js'
Compile an object length comparison function given a length comparison function.
Params:
Name | Type | Attribute | Description |
compare | Function | The function used to order lengths. |
public prop(compare: Function, key: any): Function source
import prop from '@total-order/key/src/prop.js'
Compile an object property comparison function given a property comparison function and a property key.
Params:
Name | Type | Attribute | Description |
compare | Function | The function used to order propibutes. |
|
key | any | The key of the propibute used in the comparison. |