| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/Set/intersection | [Back] [Original] |
Get to know MDN better
intersection(other)
Set Set other
(intersection)
AB={xAxB}A\cap B = \{x\in A\mid x\in B\}intersection() Set other this this Set this other
intersection() this other Set Set this other
10 10
const odds = new Set([1, 3, 5, 7, 9]);
const squares = new Set([1, 4, 9]);
console.log(odds.intersection(squares)); // Set(2) { 1, 9 }
| ECMAScript 2027 LanguageSpecification # sec-set.prototype.intersection |
| Web Proxy Viewer | New URL | Original Page |