Skip to content

thenBy

thenBy<A>(ord2): (ord1) => Ordering<A>

Defined in: Core/Ordering.ts:69

Chains two orderings: the second is used only when the first returns 0. Data-last: the first ordering is the data being piped.

A

Ordering<A>

(ord1) => Ordering<A>

const byDeptThenSalary = pipe(byDept, Ordering.thenBy(bySalary));