Converts an array of key-value pairs into an object.
An array of key-value pairs where each key is a PropertyKey and each value is of type U.
PropertyKey
U
const pairs = [['a', 1], ['b', 2]];const result = fromPairs(pairs);// result will be: { a: 1, b: 2 } Copy
const pairs = [['a', 1], ['b', 2]];const result = fromPairs(pairs);// result will be: { a: 1, b: 2 }
The type of the keys in the resulting object. It must extend PropertyKey.
The type of the values in the resulting object.
T
Alias