pentf
    Preparing search index...

    Function assertIncludes

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

      Parameters

      • haystack: any

        The thing to search in.

      • needle: any

        The thing to search for.

      • message: string | null = undefined

        Optional error message if the assertion does not hold.

      Returns void

      assertIncludes('foobar', 'foo');
      assertIncludes([9, 5, 3], 5);