Computing the difference or intersection between sets can also be helpful. I used this the other day to determine what remaining items I had to find in a computation.
// intersect can be simulated via letintersection=newSet([...set1].filter(x=>set2.has(x)))// difference can be simulated vialetdifference=newSet([...set1].filter(x=>!set2.has(x)))
Compliments of MDN.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Computing the difference or intersection between sets can also be helpful. I used this the other day to determine what remaining items I had to find in a computation.
Compliments of MDN.