Prism · Objects
$fromEntries
Turns a list of [key, value] pairs into an object. The opposite of $entriesOf.
{ pairs: [['x', 1], ['y', 2]] }{ $fromEntries: { $ref: '$.pairs' } }{ x: 1, y: 2 }Runs in this page on the installed package. The input and the expected output are defined by the example.