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...
Markdown supported · ⌘↵ to post
No responses yet.