Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Intersect

$
0
0

If I have an array containing 5 items with 1 property but that property is an array, how can I get the highest intersecting value of all 5?

 

Releases
--------
{2.0.0.1, 2.0.0.2}
{2.0.0.1, 2.0.0.2}
{2.0.0.3, 2.0.0.2}
{2.0.0.1, 2.0.0.2, 2.0.0.4, 2.0.0.3}
{2.0.0.2, 2.0.0.1}

The answer I would get back in this case is 2.0.0.2 and it would have to exist on all 5 entries.


Viewing all articles
Browse latest Browse all 6937

Trending Articles