Function: excluded()
Returns an Array of all items in one Array that are not contained within another Array.
Syntax
excluded(setA, setB)
Argument | Type | Description |
---|---|---|
setA | Array | An Array of values of any type. |
setB | Array | An Array of values of any type. |
Returns an Array of all items that are in setA that are not in setB.
Examples
excluded(["a","b","c","d","e"],["a", "c","f","d"])
Returns the Array ["b","e"].