# assertSetNotIncludes Source: https://smartassertions.dev/assertions/assertSetNotIncludes/ Index of every page: https://smartassertions.dev/llms.txt Assert that a Set does not include a specific member, with type narrowing. Membership uses the Set's own has(), which is a SameValueZero match, so an object only fails the assertion by being a reference the Set already holds, rather than equivalent in value to a member. Note that absence has no type-level witness, so this narrows an unknown value to a Set and stops there. ## Usage ```ts import { assertSetNotIncludes } from "@kensio/smartass"; const value: unknown = new Set(["draft", "featured"]); assertSetNotIncludes(value, "archived"); // value is now narrowed to ReadonlySet ``` ## Source Source file: [`src/assert/set-not-includes/set-not-includes.assert.ts`](https://github.com/KensioSoftware/smartass/blob/main/src/assert/set-not-includes/set-not-includes.assert.ts)