Prism · Sugar
$match
Keeps the strings of a list that contain a given text. Shorthand for a $filter with a $contains.
{
tags: [
'frontend',
'backend',
'devops',
'frontend-react',
'database',
],
}{
$match: {
over: { $ref: '$.tags' },
as: 'tag',
search: { $const: 'front' },
},
}['frontend', 'frontend-react']
Runs in this page on the installed package. The input and the expected output are defined by the example.