Prism · Structure

$entriesOf

Turns an object into a list of [key, value] pairs, in the object's own order.

The source
{ settings: { theme: 'dark', fontSize: 16 } }
The config
{ $entriesOf: { $ref: '$.settings' } }
What comes out
[['theme', 'dark'], ['fontSize', 16]]
Output matches the expected value

Runs in this page on the installed package. The input and the expected output are defined by the example.