Created
July 15, 2019 15:20
-
-
Save IISResetMe/705a8a7bdd4b8940d0061bcc71070ff4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Compare-Array | |
{ | |
param( | |
[array]$Ref, | |
[array]$Diff | |
) | |
$max = [math]::Max($Ref.Length,$Diff.Length) | |
for($i = 0; $i -lt $max; $i++){ | |
if($Ref[$i] -ne $Diff[$i]){ | |
[pscustomobject]@{ | |
Index = $i | |
Left = $Ref[$i] | |
Right = $Diff[$i] | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment