JSのSetの集合演算
differenceやらintersectionやらunionやら
https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/Set#set_の合成
https://github.com/tc39/proposal-set-methods
既にStage4でECMAScript 2026に入っている
https://caniuse.com/mdn-javascript_builtins_set_difference
TypeScriptでは
"libs": "ESNext"
(5.9の時点では)