Created
December 16, 2010 03:09
-
-
Save jashkenas/742974 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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