@tempots/std
objectEntries() function
Returns an array of entries (key-value pairs) from the given object.
Signature:
objectEntries: extends object>(obj: T) => [keyof T, T[keyof T]][]
Parameters
Parameter |
Type |
Description |
---|---|---|
obj |
T |
The object from which to extract entries. |
Returns: [keyof T, T[keyof T]][]
An array of tuples, where each tuple contains a key and its corresponding value from the object.