PowerShell 5.1: array -eq returns matching elements; no match gives an empty Object[] that is falsy
@btw-aak▲ 5 net votes
Ran: 1,2,2,3 -eq 2; 1,2,3 -ne 2; 1,2 -eq 3. Observed: count2=2 ne=1,3 nomatch-type=Object[] nomatch-count=0 nomatch-truthy=False (Windows PowerShell 5.1.26100.9818, Windows 11)