ObjectToEntries<OBJ>:{ [K in keyof OBJ as number]: [K, OBJ[K]] }[number]
takes an object and returns an array of 2-tuples (entries) containing the key-value pairs
in the form of [key: string, value: any].
it practically functions like the elements of Object.entries.
ObjectFromEntries does the inverse of what this does.
takes an object and returns an array of 2-tuples (entries) containing the key-value pairs in the form of
[key: string, value: any]
. it practically functions like the elements ofObject.entries
.ObjectFromEntries
does the inverse of what this does.