Skip to content

Instantly share code, notes, and snippets.

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 trycf/092bc208edbcca72e7f42d863e7b304c to your computer and use it in GitHub Desktop.
Save trycf/092bc208edbcca72e7f42d863e7b304c to your computer and use it in GitHub Desktop.
TryCF Gist
<cfscript>
function doesAKeyHaveAWhiteSpace(sct) {
loop struct=sct index="local.k" item="local.v" {
if(trim(k)!=k) return true;
}
return false;
}
sct={"dsName ":"value"};
dump(sct.dsName?:"Does not exist");
dump(doesAKeyHaveAWhiteSpace(sct));
dump(serialize(sct));
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment