Skip to content

Instantly share code, notes, and snippets.

@aliaspooryorik
Created July 18, 2018 16:14
Show Gist options
  • Select an option

  • Save aliaspooryorik/b6ab051cc92a19c04d77c0367396f692 to your computer and use it in GitHub Desktop.

Select an option

Save aliaspooryorik/b6ab051cc92a19c04d77c0367396f692 to your computer and use it in GitHub Desktop.
CFML range - no loops
// not intended for real-life usage :)
function range (start, end) {
return repeatString("_,", end-start+1).listToArray().map(function(el, i) {
return start+i-1;
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment