BUPKIS
    Preparing search index...

    Variable setContainsAssertionConst

    setContainsAssertion: AssertionFunctionSync<
        readonly [
            ZodUnion<
                [
                    ZodCustom<Set<unknown>, Set<unknown>>,
                    ZodCustom<WeakSet<WeakKey>, WeakSet<WeakKey>>,
                ],
            >,
            readonly ["to contain", "to include"],
            ZodUnknown,
        ],
        (
            subject: Set<unknown> | WeakSet<WeakKey>,
            value: unknown,
        ) =>
            | { actual?: undefined; expected?: undefined; message: string }
            | { actual: unknown; expected: string; message: string }
            | undefined,
        readonly [
            ZodUnion<
                [
                    ZodCustom<Set<unknown>, Set<unknown>>,
                    ZodCustom<WeakSet<WeakKey>, WeakSet<WeakKey>>,
                ],
            >,
            PhraseLiteralChoiceSlot<readonly ["to contain", "to include"]>,
            ZodUnknown,
        ],
    > = ...

    Asserts that a Set or WeakSet contains a specific value. For WeakSet, the value must be an object.

    const set = new Set(['a', 'b']);
    expect(set, 'to contain', 'a'); // passes

    const obj = {};
    const weakSet = new WeakSet([obj]);
    expect(weakSet, 'to contain', obj); // passes
    expect(weakSet, 'to contain', 'string'); // fails (not an object)

    set-to-contain-any

    collections