Appearance
Documentation / js-sdk-core / toObjectKeys
Function: toObjectKeys()
toObjectKeys<
TArray
,TValue
>(array
,value
):Record
<TArray
[number
],TValue
>
Given an array, convert it into an object with a supplied value per key
Type parameters
• TArray extends string
[]
• TValue = true
Parameters
• array: TArray
• value: TValue
= undefined
Returns
Record
<TArray
[number
], TValue
>