toEntries
@elastic/charts • Exports
@elastic/charts / toEntries
Function: toEntries()
toEntries<
T
,S
>(array
,accessor
,staticValue
):Record
<string
,S
>
Return an object which keys are values of an object and the value is the static one provided
Type parameters
• T extends Record
<string
, string
>
• S
Parameters
• array: T
[]
• accessor: keyof T
• staticValue: S
Returns
Record
<string
, S
>
Source
packages/charts/src/utils/common.tsx:651
Generated using typedoc-plugin-markdown and TypeDoc