Prism · Predicates

$eq

True when two values are the same. They are compared by their JSON text, so lists and objects compare as well as numbers and strings.

The source
{ status: 'active' }
The config
{ $eq: [{ $ref: '$.status' }, { $const: 'active' }] }
What comes out
true
Output matches the expected value

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