Back to Sets
intersect
Set intersection of two arrays.
Syntax
intersect(a, b) → Array of elements in both
Backends
TypeScript
Description
Set intersection of two arrays.
Parameters
| Name | Description |
|---|---|
| a | First array |
| b | Second array |
Returns
Array of elements in both