UNPKG

coersystem

Version:

Library for Angular projects

14 lines (13 loc) 640 B
/** Provides several methods for collection manipulation */ export declare class Collections { /** Set an index and concat more arrays of the same type */ static SetIndex<T>(array: T[], ...args: T[][]): T[]; /** Sort an array in ascending order by property */ static SortBy<T>(array: T[], property: string, propertyType?: 'string' | 'number'): T[]; /** Sort an array in descending order by property */ static SortByDesc<T>(array: T[], property: string, propertyType?: 'string' | 'number'): T[]; /** */ static Distinct<T>(array: T[]): T[]; /** */ static Except<T>(array: T[], exceptions: T[]): T[]; }