mixlea-utils-js 0.1.72 → 0.1.74
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 +789 -767
- package/dist/mixlea-utils-js.umd.js +2 -2
- package/dist/types/index.d.ts +4 -0
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -172,6 +172,8 @@ export declare function arraySome<T>(arr: T[], callback: (value: T, index: numbe
|
|
|
172
172
|
|
|
173
173
|
export declare function arraySort<T>(array: T[], sortCondition: SortCondition<T>): T[];
|
|
174
174
|
|
|
175
|
+
export declare function arraySumAssignMerge<R extends Record<string, any>>(arr: R[], mergeKey: (row: R) => string, sunAssign: (row: R) => Record<string, number>): R[];
|
|
176
|
+
|
|
175
177
|
export declare function arraysZip<T, R>(callback: (...args: T[]) => R, ...arrays: T[][]): R[];
|
|
176
178
|
|
|
177
179
|
export declare function arrayToBetween<T = any>(arr: T[], left: (itme: T) => boolean, right: (itme: T) => boolean): T[];
|
|
@@ -622,6 +624,8 @@ export declare function getRangeDateYearSegments([startDate, endDate]: [Date, Da
|
|
|
622
624
|
*/
|
|
623
625
|
export declare function getRangeHexPercentColor(startHex: string, endHex: string, percent: number): string;
|
|
624
626
|
|
|
627
|
+
export declare function getRecordMergeKey<R extends Record<string, any>>(row: R, ...fields: (string | ((row: R) => any))[]): any;
|
|
628
|
+
|
|
625
629
|
export declare function getToday(): Date;
|
|
626
630
|
|
|
627
631
|
export declare function getTodayEndTimestamp(): number;
|