UNPKG

@antv/util

Version:

<h1 align="center">@antv/util</h1>

8 lines (7 loc) 324 B
export interface ObjectType<T> { [key: string]: 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;