Version: v0.6.0 - Beta.  We welcome contributors & feedback.  THanks!

String.contains

contains($matchString, $ignoreCase = false)

Description

Check for the existence of $match and return true or false.

'abcdef'.contains('def');
//= true

'abcdef'.contains('xyz');
//= false

'abcdef'.contains('CDE', true);
//= true

See Also