Skip to content

Instantly share code, notes, and snippets.

@railsstudent
Created January 29, 2017 14:45
Show Gist options
  • Save railsstudent/554cc8b5e306cf5b821e43042c9bba45 to your computer and use it in GitHub Desktop.
Save railsstudent/554cc8b5e306cf5b821e43042c9bba45 to your computer and use it in GitHub Desktop.
array_diff = (a, b) ->
diff_array = []
for e in a
if e not in b then diff_array.push e
diff_array
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment