Created
June 4, 2015 12:37
-
-
Save DominicWatson/7cc1e1280f9b70c96dfa to your computer and use it in GitHub Desktop.
Filter member function on strings in Lucee 4.5+
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
mystring = "my string"; | |
result = mystring.filter( function( part ){ | |
echo( part ); | |
return part != 'my'; | |
}, " " ); | |
echo( result ); | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment