Type alias Sorter<Item>

Sorter<Item>: Unary<Item, Unary<Item, number>>

Sorter function.

Example

const array: ReadOnlyArray<number> = [1, 2, 3];
const sorter: Sorter<number> = value1 => value2 => value1 - value2;

Type Parameters

  • Item