use Set.prototype.difference()
Hi, I would like to use Set.prototype.difference() but it doesn't seem like it's available.
I'd like to know if there is a way to somehow use it.
Property 'difference' does not exist on type 'Set<string>'
MDN Reference
I'm probably in the wrong Discord, sorry in advance.MDN Web Docs
Set.prototype.difference() - JavaScript | MDN
The difference() method of Set instances takes a set and returns a new set containing elements in this set but not in the given set.
0 Replies