sort-es
Version:
Blazing fast, tree-shakeable, type-safe, modern utility library to sort any type of array in less than 1 KB!
10 lines (9 loc) • 451 B
TypeScript
import { ByValuesSorter, GenericTuple, sortable } from "../types/types";
/**
* the sortable that allow you to sort an array of **complex object** by multiple properties
* @param sorter the array to determine the strategy to sort the elements
*
* {@link https://sort-es.netlify.app/by-values byValues docs}
* @version 1.2.0
*/
export default function byValues<T, TTuple extends GenericTuple<T>[]>(sorter: ByValuesSorter<T, TTuple>): sortable<T>;