同步源码
This commit is contained in:
5
types/Common/ArrayExt.d.ts
vendored
5
types/Common/ArrayExt.d.ts
vendored
@@ -22,6 +22,11 @@ export declare function FindLast<T>(arr: T[], searchFn: (item: T) => boolean): n
|
||||
* @returns {Array<T>} 返回自身
|
||||
*/
|
||||
export declare function arraySortByNumber<T>(arr: Array<T>): Array<T>;
|
||||
/**
|
||||
* map按Key的拼音首字母排序
|
||||
* reverse:倒序
|
||||
*/
|
||||
export declare function mapSortByCN(map: Map<string, any>, reverse?: boolean): Map<string, any>;
|
||||
/**
|
||||
* 对排序好的数组进行去重操作
|
||||
* @param {(e1, e2) => boolean} [checkFuction] 校验对象相等函数,如果相等 则删除e2
|
||||
|
Reference in New Issue
Block a user