Created
November 25, 2022 10:03
-
-
Save trycf/91bbc6e1666891eac735e0b24f5171c7 to your computer and use it in GitHub Desktop.
TryCF Gist
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> | |
function closureArgumentCollection(a,b){ | |
closureFunction = function(argumentCollection=arguments){ // When using argument collection in function declare, it makes argumentCollection key in argument scope | |
writeDump(arguments); | |
} | |
closureFunction(); | |
} | |
closureArgumentCollection(1,2) | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment