Skip to main content

Function: objectEntries()

objectEntries(text): Map<string, string>

The top-level entries of an object literal ({ a: 1, b }): key and value text. Undefined when text is not an object literal or spreads another object, whose keys cannot be known.

Parameters​

text​

string

Returns​

Map<string, string>