Created
May 25, 2023 20:11
-
-
Save trycf/87205f8b0f713b34e1ea6db06739ee08 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> | |
myQry = queryNew( 'first,last', 'varchar,varchar', [['Brad','Wood'],['Jon','Clausen']] ) | |
writedump(myQry) | |
arrayOfStructs = myQry.reduce((result, row) => { | |
result.append(row); | |
return result; | |
}, []); | |
writedump(arrayOfStructs) | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment