BUPKIS
    Preparing search index...

    Variable mapContainsAssertionConst

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

    Asserts that a Map or WeakMap contains a specific key. For WeakMap, the key must be an object.

    const map = new Map([['key', 'value']]);
    expect(map, 'to contain', 'key'); // passes

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

    map-to-contain-any

    collections