pentf
    Preparing search index...

    Function assertNotIncludes

    • Assert that a string is not included in another, or object is not included in an array.

      Type Parameters

      • T

      Parameters

      • haystack: T[]

        The thing to search in.

      • needle: T

        The thing to search for.

      • message: string | null = undefined

        Optional error message if the assertion does not hold.

      Returns void

      assertNotIncludes('foobar', 'xxx');
      assertNotIncludes([9, 5, 3], 2);