mixlea-utils-js 0.1.78 → 0.1.80

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.
@@ -1048,8 +1048,12 @@ export declare function numberToInt(input: any, method?: 'floor' | 'ceil' | 'rou
1048
1048
 
1049
1049
  export declare function objectArrayExpressionCalcInject(arr: Record<string, any>[], injects: Record<string, string>): Record<string, any>[];
1050
1050
 
1051
+ export declare function objectArrayMaxField<T extends Record<string, any>, K extends keyof T>(arr: T[], field: K, defaultValue?: T[K]): number;
1052
+
1051
1053
  export declare function objectArrayMerge<T extends Record<string, any>>(arr: T[], classNames: string[], mergeCallback?: (mergeRecord: T, item: T) => T): T[];
1052
1054
 
1055
+ export declare function objectArrayMinField<T extends Record<string, any>, K extends keyof T>(arr: T[], field: K, defaultValue?: T[K]): number;
1056
+
1053
1057
  export declare function objectArrayPick(arr: Record<string, any>[], pick: string): any[];
1054
1058
 
1055
1059
  export declare function objectArrayResetFields<T extends Record<string, any>>(arr: T[], resetFields: Record<string, any>): T[];
@@ -1155,6 +1159,8 @@ export declare function percentFormatter<T = unknown>(value: T, options?: {
1155
1159
  precisionPad?: boolean;
1156
1160
  }): string;
1157
1161
 
1162
+ export declare function pickObjectArrayField<T extends Record<string, any>, K extends keyof T>(arr: T[], field: K, defaultValue?: T[K]): T[K][];
1163
+
1158
1164
  export declare function pipe<A extends unknown[], B>(ab: (this: void, ...a: A) => B): (...args: A) => B;
1159
1165
 
1160
1166
  export declare function pipe<A extends unknown[], B, C>(ab: (this: void, ...a: A) => B, bc: (this: void, b: B) => C): (...args: A) => C;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mixlea-utils-js",
3
3
  "type": "module",
4
- "version": "0.1.78",
4
+ "version": "0.1.80",
5
5
  "private": false,
6
6
  "license": "Apache-2.0",
7
7
  "exports": {