@tempots/std

objectFromEntries() function

Creates an object from an array of entries.

Signature:

objectFromEntries: extends object>(entries: [keyof T, T[keyof T]][]) => T

Parameters

Parameter

Type

Description

entries

[keyof T, T[keyof T]][]

The array of entries to create an object from.

Returns: T

The created object.