Mapping Records to arrays
I needed this functionality to parse a configuration regardless of whether it was supplied as an array or a Record. This function converts the Record into an array of the same type:
function mapRecordToArray<T, R extends Omit<T, K>, K extends keyof T...
brense.hashnode.dev1 min read