#
Coffeescript one-liner of the day
Need to cross check two arrays to see if any values match? Checkout out this beauty:
any = (arr1, arr2) -> true in (val in arr1 for val in arr2)
any [‘cat’, ‘dog’], [‘snake’,’mouse’,’dog’,’horse’,’turtle’]
# true
This was posted 1 month ago. It has 0 notes.