Whatever message this page gives is out now! Go check it out!
StringReduceRight(array, function(result, item, [,index, array])[, initialValue])Parameter | Description |
string | (Required) The input string |
function | (Required) Closure or a function reference that will be called for each of the iteration. |
initialVal | (Optional) Initial value that will be used for the reduce operation. The type is any. |
<cfscript>
myStr="1202";
closure=function(value1,value2){
return (value1 & value2);
}
writeOutput(StringReduceRight(myStr,closure,"ColdFusion "))
</cfscript><cfscript>
myStr="1202";
closure=function(value1,value2){
return (value1 & value2);
}
writeOutput(myStr.reduceRight(closure,"ColdFusion"))
</cfscript>