What’s the simplest, library-free code for implementing array intersections in javascript? I want to write

intersection([1,2,3], [2,3,4,5])

and get

[2, 3]

37 s
37

Leave a Reply

Your email address will not be published. Required fields are marked *