• Check whether the target matches the pattern

    Example

    expect(matches('abc', 'abc').value).toBeTruthy()
    

    Parameters

    • target: string

      The target

    • pattern: RegExp

      The RegExp

    • Optional modifiers: string

      The optional modifier

    Returns Result<boolean | undefined>

Generated using TypeDoc