export const objToArray = (a: { [key: string]: T }): Array => Object.keys(a).reduce((acc, curr) => [...acc, a[curr]], []);