Checks if string matches the pattern. Either matches('foo', /foo/i) or matches('foo', 'foo', 'i'). If given value is not a string, then it returns false.
expect(isMatch('xyz', /xyz/).value).toBeTruthy()
The value being checked.
The match pattern
Optional
The modifiers
Generated using TypeDoc
Checks if string matches the pattern. Either matches('foo', /foo/i) or matches('foo', 'foo', 'i'). If given value is not a string, then it returns false.
Example