Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Excerpt
hiddentrue

included(setA, setB) Returns an Array of all items in one Array that are also contained within another Array.


Function: included()

Returns an Array of all items in one Array that are also contained within another Array.

Syntax

included(setA, setB)

ArgumentTypeDescription
setAArrayAn Array of values of any type.
setBArrayAn Array of values of any type.

Returns an Array of all items that are in setA that are also in setB.

Examples

included(["a","b","c"],["a", "c","f","d"])

Returns the Array ["a","c"].

...