import ValueMap from "../types/ValueMap"; export default (object: ValueMap, key: string) => { let result: { [key: string]: any; } = {}; Object.keys(object).forEach((o: string) => { result[o] = object[o].get(key); }); return result; };