Status/Resolution/Reason: Closed/Fixed/Fixed
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)
Created: 08/30/2016
Components: Language
Versions: 2016
Failure Type: Enhancement Request
Found In Build/Fixed In Build: CF2016_Update2 / latest build
Priority/Frequency: Major / Some users will encounter
Locale/System: English / Win All
Vote Count: 0
arrayFindNoCase callback does not work
<cfscript>
a = ["FooBar"];
//arrayFind()/.arrayFind() works
r1 = a.find(function(e) {return true;});//returns 1
r2 = arrayFind(a, function(e) {return true;});//returns 1
writeDump([r1,r2]);
//arrayFindNoCase()/.arrayFindNoCase() fails
r3 = a.findNoCase(function(e) {return true;});//Throws "Valid datatype for element to search is String."
r4 = arrayFindNoCase(a, function(e) {return true;});//Throws "Valid datatype for element to search is String."
writeDump([r3,r4]);
</cfscript>
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4185107
External Customer Info:
External Company:
External Customer Name: Aaron Neff
External Customer Email:
Attachments:
Comments: