Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save trycf/3477c7cb6b8a99cdf33e164ee2a1b864 to your computer and use it in GitHub Desktop.
Save trycf/3477c7cb6b8a99cdf33e164ee2a1b864 to your computer and use it in GitHub Desktop.
TryCF Gist
<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