Skip to content

Instantly share code, notes, and snippets.

@Dykam
Created February 3, 2011 22:46
Show Gist options
  • Select an option

  • Save Dykam/810386 to your computer and use it in GitHub Desktop.

Select an option

Save Dykam/810386 to your computer and use it in GitHub Desktop.
clone = (item) ->
newItem = {}
for property, value of item
newItem[property] = value
newItem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment