mixlea-utils-js 0.1.73 → 0.1.75

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[];
@@ -957,6 +959,10 @@ export declare function mergeObject<T extends any[]>(...objectList: T): Merge<T>
957
959
 
958
960
  export declare function mergeProps<T extends Record<string, any>>(base: T, extra: T): T;
959
961
 
962
+ export declare function moneyFormatter(input: any, opts?: {
963
+ enableBillion?: boolean;
964
+ }): string | number;
965
+
960
966
  export declare function multiply(arr: any[], options?: {
961
967
  replaceNaNItem?: number;
962
968
  replaceNaNResult?: 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.73",
4
+ "version": "0.1.75",
5
5
  "private": false,
6
6
  "license": "Apache-2.0",
7
7
  "exports": {