arrayContainsNoCase

Used to determine if a value is in the given array, case insensitive.

arrayContainsNoCase(array, value) → returns boolean

Member Function Syntax

someArray.containsNoCase(value)

arrayContainsNoCase Argument Reference

array array
Required

value any
Required

Compatibility

Lucee:

Returns index of first occurrence

ColdFusion:

Version 2016+ Member function is not available.

Examples sample code invoking the arrayContainsNoCase function

CF 2016+

writeOutput(arrayContainsNoCase(["first", "SECOND"], "First"));

Lucee 4+

arrayWithStrings = ["first", "SECOND"];
writeOutput(arrayWithStrings.containsNoCase("FIrst"));

Fork me on GitHub