@antv/util
Version:
<h1 align="center">@antv/util</h1>
8 lines (7 loc) • 324 B
TypeScript
export interface ObjectType<T> {
[ ]: T;
}
declare function sortBy<T>(arr: ObjectType<T>[], key: Function): ObjectType<T>[];
declare function sortBy<T>(arr: ObjectType<T>[], key: string): ObjectType<T>[];
declare function sortBy<T>(arr: ObjectType<T>[], key: string[]): ObjectType<T>[];
export default sortBy;