Prism · Predicates
$endsWith
True when a string ends with suffix.
{ file: 'notes.json' }{
$endsWith: {
value: { $ref: '$.file' },
suffix: { $const: '.json' },
},
}true
Runs in this page on the installed package. The input and the expected output are defined by the example.