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
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/intersection
Takes two argument,
self
andother
, and returns a new object of the same type asself
which contains the elements that are in bothself
andother
.