Back to Sets
setdiff
Set difference of two arrays.
Syntax
setdiff(a, b) → Elements in a but not in b
Backends
TypeScript
Description
Set difference of two arrays.
Parameters
| Name | Description |
|---|---|
| a | First array |
| b | Second array |
Returns
Elements in a but not in b