Prism · Predicates

$contains

True when a string has search somewhere in it.

The source
{ name: 'Ada Lovelace' }
The config
{
  $contains: { value: { $ref: '$.name' }, search: { $const: 'Love' } },
}
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.