import { TAnyObject } from '../../typings/object'; import { IKeyValuePair } from '../../typings/patterns'; export default function getObjectKeyVals(obj: TAnyObject): IKeyValuePair[] { return Object.keys(obj) .map((key) => ({ key, value: obj[key], })); }