Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@wellercs
Created December 3, 2015 23:50
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 wellercs/064e3350ff32f1d7a9ef to your computer and use it in GitHub Desktop.
Save wellercs/064e3350ff32f1d7a9ef to your computer and use it in GitHub Desktop.
CFML - array append versus addAll
<cfscript>
arr1 = [1];
arr2 = [2,3];
arr1.append(arr2);
writedump(arr1);
arr3 = [1];
arr4 = [2,3];
arr3.addAll(arr4);
writedump(arr3);
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment