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.
@@ -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;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mixlea-utils-js",
3
3
  "type": "module",
4
- "version": "0.1.72",
4
+ "version": "0.1.74",
5
5
  "private": false,
6
6
  "license": "Apache-2.0",
7
7
  "exports": {