9951 explained code solutions for 126 technologies


powershellHow to retrieve an array that is inside another array or list


@("string1",'c',11,10,@(0,1,1,2,3)) | Where-Object{$_ -is [Array]}ctrl + c
@("string1",'c',11,10,@(0,1,1,2,3))

create an array of several data types

Where-Object

filter list of enumerated data based on a condition

$_ -is [Array]

retrieves the $_ iterator object for the list of data types and returns the object of type that IS [Array]