ArrayContainsNoCase
Array finders and contains functions with and without case sensitivity.
Please note that "contain" methods return a boolean, while "find" methods return an index. If you use a function as the value, it will be used as a search closure or lambda. The signature of the function should be:
Example:
We recommend you use BoxLang lambdas ( {@code ->} ) for this purpose, so they only act upon the value and index without any side effects. They will be faster and more efficient.
Method Signature
Arguments
Argument | Type | Required | Description | Default |
---|---|---|---|---|
|
|
| The array to be searched. | |
|
|
| The value to find or a closure to be used as a search function. | |
|
|
| If true, the search will be a substring match. Default is false. This only works on simple values, not complex ones. For that just use a function filter. |
|
Examples
Related
Last updated