UNPKG

sort-es

Version:

Blazing fast, tree-shakeable, type-safe, modern utility library to sort any type of array in less than 1 KB!

12 lines (11 loc) 303 B
import { datable } from "../types/types"; export interface SortOption { desc?: boolean; nullable?: boolean; } export interface SortByStringOption extends SortOption { lowercase?: boolean; } export interface SortByDateOption extends SortOption { customParser?: (item: datable) => Date; }