Skip to content

Instantly share code, notes, and snippets.

@jordanthomas
Created August 28, 2013 19:22
Show Gist options
  • Save jordanthomas/6370128 to your computer and use it in GitHub Desktop.
Save jordanthomas/6370128 to your computer and use it in GitHub Desktop.
Array clone
Array::clone = ->
@slice 0
Array.prototype.clone = function() {
return this.slice(0);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment