Skip to main content

Function: objectToTuples()

objectToTuples<T>(obj: T, prefix: string): [keyof T, T[keyof T]][]

Convert an object to a tuple

Type Parameters

Type Parameter
T extends object

Parameters

ParameterTypeDefault valueDescription
objTundefinedThe object to convert
prefixstring''The prefix for the key

Returns

[keyof T, T[keyof T]][]

Defined in

objectToTuples.ts:8