Get Intersection of two Javascript Sets

Write a function that takes two sets (a and b) as arguments. Get the intersection of the sets. In other words, return a set containing all elements that are both in a as well as b
Get a premium membership to access this content: