includes
includes<
T>(path,value):SchemaRule
Defined in: projects/ngx-signal-schema/src/lib/conditions/includes.ts:15
Checks if a list field contains a specific value. If you need the other way round, use valueIn
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”SchemaPath<T[]>
The path to the list field.
T
The value to look for.
Returns
Section titled “Returns”A rule function that returns true if the list contains the value.