Skip to main content

Home > @jsplumb/util > SortFunction

SortFunction type#

Defines a function that can be used to sort an array.

Signature:

export declare type SortFunction<T> = (a: T, b: T) => number;