Skip to content

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

T

SchemaPath<T[]>

The path to the list field.

T

The value to look for.

SchemaRule

A rule function that returns true if the list contains the value.