Returns a collector that returns a Record from an Iterable.
Type of items in the source.
Type of the key.
Type of the value.
A function that defines the key for each entry.
A function that defines the value for each entry.
Collector that returns a Record from an Iterable.
const result = toRecordAsync((x) => x, (x) => x)([1, 2, 3]);console.log(result); // {1 => 1, 2 => 2, 3 => 3} Copy
const result = toRecordAsync((x) => x, (x) => x)([1, 2, 3]);console.log(result); // {1 => 1, 2 => 2, 3 => 3}
Returns a collector that returns a Record from an Iterable.