• Test whether the target string contains the contained string.

    Example

    expect(contains('foobar', 'foo').value).toBeTruthy()
    

    Parameters

    • target: string

      The string that should contain the element

    • contained: string

      The possibly contained string

    Returns Result<boolean | undefined>

Generated using TypeDoc