Prism · Objects

$keys

The keys of an object as a list, in the object's own order.

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

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