Can someone help me with this function?
export const ObjectToArray = <T>(object: T): { key: unknown; value: unknown }[] =>
Object.entries(object).map(o => ({ key: o[0], value: o[1] }));
I'm trying to remove the any
part from the result
I just can't figure out where to start. Any suggestions would be greatly appreciated.