Takes two argument, self and other, and returns a new object of the same type as self which contains the elements that are in both self and other.
self
other
If Set.intersection() is not supported then a polyfill will be used.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/intersection
Takes two argument,
selfandother, and returns a new object of the same type asselfwhich contains the elements that are in bothselfandother.If Set.intersection() is not supported then a polyfill will be used.