Created
July 3, 2025 11:07
-
-
Save trycf/3477c7cb6b8a99cdf33e164ee2a1b864 to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains hidden or 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> | |
st1 = { | |
user_name: "john doe", | |
company_name: "good news llc", | |
company_url: "blah" | |
}; | |
st2 = { | |
userName: "john doe", | |
companyName: "good news llc", | |
companyUrl: "blah" | |
}; | |
st1.each(function(key,value){ | |
st1["{{" & key & "}}"] = value; | |
dump(st1); | |
st1.delete(key); | |
}); | |
dump("-------------"); | |
st3 ={}; | |
st2.each(function(key,value){ | |
st2["{{" & key & "}}"] = value; | |
dump(st2); | |
st2.delete(key); | |
}); | |
dump(var=st1,label="st1"); | |
dump(var=st2,label="st2"); | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment