Skip to content

Instantly share code, notes, and snippets.

@noedlm
Created November 9, 2017 19:00
Show Gist options
  • Save noedlm/be55c6d443cc6736cb7bc84bd7192146 to your computer and use it in GitHub Desktop.
Save noedlm/be55c6d443cc6736cb7bc84bd7192146 to your computer and use it in GitHub Desktop.
Coldfusion: Perks of iterating through structures and arrays using .each()
structEach(struct, function(key, value) {
writeOutput(key & " = " & value);
});
arrayEach(array, function(item, index) {
writeOutput(item & "at index: " & index);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment