Class: ObjectUtils
Defined in: src/sdk/utils/datastructures/ObjectUtils.ts:4
Utility functions for working with objects.
Constructors
Constructor
new ObjectUtils():
ObjectUtils
Returns
ObjectUtils
Methods
fromEntries()
static
fromEntries<T
>(entries
):{ [K in readonly [PropertyKey, unknown] as K[0]]: K[1] }
Defined in: src/sdk/utils/datastructures/ObjectUtils.ts:11
Returns an object created by key-value entries for properties and methods. Object.fromEntries is not available in CoherentJS.
Type Parameters
Type Parameter |
---|
T extends readonly readonly [PropertyKey , unknown ][] |
Parameters
Parameter | Type | Description |
---|---|---|
entries | T | An iterable object that contains key-value entries for properties and methods. |
Returns
{ [K in readonly [PropertyKey, unknown] as K[0]]: K[1] }
The object.