mixlea-utils-js 0.1.76 → 0.1.77
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 +426 -417
- package/dist/mixlea-utils-js.umd.js +2 -2
- package/dist/types/index.d.ts +2 -0
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -1354,6 +1354,8 @@ export declare function sumBy<T>(arr: T[], getter: string | ((item: T) => number
|
|
|
1354
1354
|
replaceNaNResult?: number;
|
|
1355
1355
|
}): number;
|
|
1356
1356
|
|
|
1357
|
+
export declare function sumByFields<T extends Record<string, any>>(arr: T[], fields: string[]): number;
|
|
1358
|
+
|
|
1357
1359
|
export declare function SWITCH(key: any, map: ISwitchMap): any;
|
|
1358
1360
|
|
|
1359
1361
|
export declare function switchCase(condition: any, cases: Record<any, any>): any;
|