is

source

is<R extends Struct<string, R>, F extends string | number | symbol>(field: F, type: R["UnionFields"][F]): ScalarPredicatesource

Returns a predicate that evaluates to true if the field contains a value of the given type, where the type is specified in its tag form. For example, to match on a number value, pass the literal string "number".