fromEntries

function fromEntries<K, T>(entries): { [key in K]: T }

Type parameters

Type parameter
K extends PropertyKey
T

Parameters

ParameterType
entriesIterable<readonly [K, T]>

Returns

{ [key in K]: T }