Skip to content

Instantly share code, notes, and snippets.

@jashkenas
Created December 16, 2010 03:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jashkenas/742974 to your computer and use it in GitHub Desktop.
Save jashkenas/742974 to your computer and use it in GitHub Desktop.
arrayEq = (a1, a2) ->
return no if a1.length isnt a2.length
return no for item, i in a1 when a2[i] isnt item
yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment