EUS/utilities/ArrayUtility.ts

10 lines
219 B
TypeScript
Raw Normal View History

2025-01-26 10:34:56 +00:00
export default abstract class ArrayUtility {
public static ToIdKeyedDict(array: Array<any>) {
const dict: { [key: string]: any } = {};
for (const item of array) {
dict[item.Id] = item;
}
return dict;
}
}