Added support for containsAny function

This commit is contained in:
Shekhar Gulati
2016-05-06 15:40:47 +05:30
parent d3c0cac910
commit b24a5ebbf2
3 changed files with 40 additions and 5 deletions
+8
View File
@@ -103,8 +103,16 @@ Verifies that all needles are contained in value.
// result = false
```
## containsAny(value, needles, caseSensitive)
Verifies that one or more of needles are contained in value.
```java
String title = "foo bar";
String needles = ["foo", "bar", "test"];
String result = containsAny(title, needles, true);
// result = true
```
## Other functions that can be added