Function: objectToTuples()
objectToTuples<
T
>(obj
:T
,prefix
:string
): [keyofT
,T
[keyofT
]][]
Convert an object to a tuple
Type Parameters
Type Parameter |
---|
T extends object |
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
obj | T | undefined | The object to convert |
prefix | string | '' | The prefix for the key |
Returns
[keyof T
, T
[keyof T
]][]