set:intersection()
returns the intersection of two node-sets. In other words, it returns a node-set containing all the nodes that exits in both nodeSet1
and nodeSet2
.
Syntax
set:intersection(nodeSet1, nodeSet2)
Arguments
nodeSet1
- The first node-set.
nodeSet2
- The second node-set.
Returns
A node-set containing the nodes that existed in both nodeSet1
and in nodeSet2
.
Specifications
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
set:intersection() | Chrome ? | Edge ? | Firefox Full support 3 | IE ? | Opera ? | Safari ? | WebView Android ? | Chrome Android ? | Firefox Android Full support 4 | Opera Android ? | Safari iOS ? | Samsung Internet Android ? |
Legend
- Full support
- Full support
- Compatibility unknown
- Compatibility unknown