Skip to content

Instantly share code, notes, and snippets.

@DominicWatson
Created June 4, 2015 12:37
Show Gist options
  • Save DominicWatson/7cc1e1280f9b70c96dfa to your computer and use it in GitHub Desktop.
Save DominicWatson/7cc1e1280f9b70c96dfa to your computer and use it in GitHub Desktop.
Filter member function on strings in Lucee 4.5+
<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