Skip to content

Instantly share code, notes, and snippets.

@noedlm
Created November 9, 2017 18:59
Show Gist options
  • Save noedlm/b4921547a84c8f95b2efa6e3b9cf0f9f to your computer and use it in GitHub Desktop.
Save noedlm/b4921547a84c8f95b2efa6e3b9cf0f9f to your computer and use it in GitHub Desktop.
Coldfusion: Perks of iterating through structures and arrays using .each()
array = ["car", "bike", "foot"];
array.each(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