mixlea-utils-js 0.1.90 → 0.1.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mixlea-utils-js.js +133 -126
- package/dist/mixlea-utils-js.umd.js +2 -2
- package/dist/types/index.d.ts +4 -2
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -142,10 +142,12 @@ export declare function arrayObjectFieldSame<T extends Record<string, any>>(inpu
|
|
|
142
142
|
whenEmptyResult?: boolean;
|
|
143
143
|
}): boolean;
|
|
144
144
|
|
|
145
|
-
export declare function arrayObjectMultiSort
|
|
145
|
+
export declare function arrayObjectMultiSort<O extends Record<string, any>>(arr: O[], conditions: {
|
|
146
146
|
prop: string;
|
|
147
147
|
order?: 'asc' | 'desc';
|
|
148
|
-
}[]
|
|
148
|
+
}[], opts?: {
|
|
149
|
+
keepLast?: (row: O) => boolean;
|
|
150
|
+
}): O[];
|
|
149
151
|
|
|
150
152
|
export declare function arrayPickLast<T = any>(arr: T[]): T | null;
|
|
151
153
|
|