Returns a new array containing only the elements present in all input arrays, using deep comparison.
Examples: intersection(['a', 'b'], ['b', 'c']) // ['b'] intersection([dream1, dream2], [dream3]) // [dream1] (uses Dream comparator) intersection([]) // []
Arrays to intersect
A new array containing only the elements present in all arrays
Returns a new array containing only the elements present in all input arrays, using deep comparison.
Examples: intersection(['a', 'b'], ['b', 'c']) // ['b'] intersection([dream1, dream2], [dream3]) // [dream1] (uses Dream comparator) intersection([]) // []