@kayahr/assert
    Preparing search index...

    Function assertNotContain

    Asserts that the given item is not contained within the given container.

    The container. Can be an array or a string.

    The item to search in the container. Must be a string if container is a string.

    Optional reason added to exception message when assertion fails.

    AssertionError when item is found in container.

    • Parameters

      • actual: string
      • expected: string
      • Optionalreason: string

      Returns void

    • Type Parameters

      • T

      Parameters

      • actual: T[]
      • expected: T
      • Optionalreason: string

      Returns void