difference
Modified on Mon, 07 Aug 2023
Description
Create an array of array values not included in the other given arrays
Syntax
difference(array1, array2)
Parameters
Input Parameter | Type | Description |
---|---|---|
array1 | Array | The array to inspect |
array2 | Array | The values to exclude |
Return value
Type |
---|
Array |
Sample
Example | Result | Description |
---|---|---|
difference([2, 1], [2, 3]); | [1] | Returns the new array of filtered values. |
To view all the List functions, click here.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article