/** * 删除数组中指定的元素,返回数组本身 * @param {Array} arr 需要操作的数组 * @param {*} el 需要移除的元素 */ export declare function arrayRemove(arr: Array, el: T): Array; export declare function arrayRemoveOnce(arr: Array, el: T): Array; /** * 删除通过函数校验的元素 * @param {(e: T) => boolean} checkFuntion 校验函数 */ export declare function arrayRemoveIf(arr: Array, checkFuntion: (e: T) => boolean): Array; export declare function arrayFirst(arr: Array): T; export declare function arrayLast(arr: { [key: number]: T; length: number; }): T; export declare function FindLast(arr: T[], searchFn: (item: T) => boolean): number; /** * 根据数值从小到大排序数组 * @param {Array} arr * @returns {Array} 返回自身 */ export declare function arraySortByNumber(arr: Array): Array; /** * map按Key的拼音首字母排序 * reverse:倒序 */ export declare function mapSortByCN(map: Map, reverse?: boolean): Map; /** * 对排序好的数组进行去重操作 * @param {(e1, e2) => boolean} [checkFuction] 校验对象相等函数,如果相等 则删除e2 * @returns {Array} 返回自身 */ export declare function arrayRemoveDuplicateBySort(arr: Array, checkFuction?: (e1: T, e2: T) => boolean): Array; export declare function ArrayRemoveDupSavePre(baseCompareArray: any[], arrs: (any[])[]): void; export declare function arrayMap(arr: Array, mapFunc: (v: T) => T): Array; declare function checkEqual(e1: any, e2: any): boolean; /** * 改变数组的值顺序 * @param arr 需要改变初始值位置的数组 * @param index //将index位置以后的值放到起始位置 */ export declare function changeArrayStartIndex(arr: T[], index: number): T[]; export declare function equalArray(a: T[], b: T[], checkF?: typeof checkEqual): boolean; export declare function arrayClone(arr: T[]): T[]; export declare function arrayPushArray(arr1: T[], arr2: T[]): T[]; export declare function arraySum(arr: number[]): number; export declare function FilterSet(s: Set, fn: (el: T) => boolean): Set; export {}; //# sourceMappingURL=ArrayExt.d.ts.map