Iterates over a string and runs the closure function for each element in the string.
stringEach(string,callback)
→ returns void
string.each(callback)
callback(element,index,string).
stringEach function yet, but their Each() function is similar, though deprecated.
letters="ahqwz";
callback=function(inp){ writeoutput(inp == "q");}
StringEach(letters,callback);
Expected Result: NONOYESNONO
letters="ahqwz";
letters.each(function(inp){writeoutput(inp == "q");});
Expected Result: NONOYESNONO
Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.