MOBILE-4282 core: Improve helper types

main
Noel De Martin 2023-04-24 13:21:14 +02:00
parent 6cb78cf27e
commit f019afa920
1 changed files with 1 additions and 5 deletions

View File

@ -1312,11 +1312,7 @@ export class CoreUtilsProvider {
keyName: string,
valueName: string,
keyPrefix?: string,
): {[name: string]: T} | undefined {
if (!objects) {
return;
}
): {[name: string]: T} {
const prefixSubstr = keyPrefix ? keyPrefix.length : 0;
const mapped = {};
objects.forEach((item) => {