Skip to content

Instantly share code, notes, and snippets.

Created September 7, 2017 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/807fc8919dd9d5899c7f5c15b301e6af to your computer and use it in GitHub Desktop.
Save anonymous/807fc8919dd9d5899c7f5c15b301e6af to your computer and use it in GitHub Desktop.
TryCF Gist
<cfscript>
// Works
function doSomething() {
ArrayFilter( arguments, function() {
return true;
} );
}
doSomething( 'foo', 'bar' );
// Doesn't work
// can't cast [foo] string to a number value on line xx
function doSomething2( foo, bar ) {
ArrayFilter( arguments, function() {
return true;
} );
}
doSomething2( 'foo', 'bar' );
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment