Searches an array for all positions of a specified value. The function searches for simple values such as strings and numbers or for complex objects such as structures. When the second parameter is a simple value, string searches are case-sensitive
arrayFindAllNoCase(array, value or callback)
→ returns array
someArray.findAllNoCase(value or callback)
Find the positions of a given string within a provided array regardless of case.
var fruitArray = ['apple','banana','apple','orange','kiwi'];
var applePositions = arrayFindAllNoCase(fruitArray, 'APPLE');
writeDump(applePositions);
Expected Result: [1,3].
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.