Anahkiasen / underscore-php

A redacted PHP port of Underscore.js with additional functions and goodies – Available for Composer and Laravel
http://anahkiasen.github.com/underscore-php/
1.12k stars 88 forks source link

Adding intersection() and intersects() #35

Closed yankeeinlondon closed 10 years ago

yankeeinlondon commented 10 years ago

I added the missing intersection() function from underscore but also added a handy feature on top which just provides a boolean check on whether two arrays intersect. I find this latter function highly useful but I wasn't precisely sure how best to name it. Let me know if you think it needs a rename.

Anahkiasen commented 10 years ago

Looks good, one or two CS fixes and we're good :)

Anahkiasen commented 10 years ago

Thanks!