Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions reference/3.0/Microsoft.PowerShell.Core/About/about_Arrays.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ title: about_Arrays
# About Arrays

## Short Description

Describes arrays, which are data structures designed to store
collections of items.

Expand Down Expand Up @@ -43,7 +42,7 @@ $B = 5..8

As a result, $B contains four values: 5, 6, 7, and 8.

When no data type is specified, Windows PowerShell creates each array as an
When no data type is specified, PowerShell creates each array as an
object array (type: System.Object[]). To determine the data type of an array,
use the GetType() method. For example, to determine the data type of the $a
array, type:
Expand Down Expand Up @@ -421,8 +420,8 @@ using `.` notation from any collection.
To get the properties and methods of an array, such as the Length property and
the SetValue method, use the InputObject parameter of the Get-Member cmdlet.

When you pipe an array to `Get-Member`, Windows PowerShell sends the items one
at a time and Get-Member returns the type of each item in the array (ignoring
When you pipe an array to `Get-Member`, PowerShell sends the items one
at a time and `Get-Member` returns the type of each item in the array (ignoring
duplicates).

When you use the *-InputObject* parameter, `Get-Member` returns the members of
Expand Down
13 changes: 6 additions & 7 deletions reference/4.0/Microsoft.PowerShell.Core/About/about_Arrays.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ title: about_Arrays
# About Arrays

## Short Description

Describes arrays, which are data structures designed to store
collections of items.

Expand Down Expand Up @@ -43,7 +42,7 @@ $B = 5..8

As a result, $B contains four values: 5, 6, 7, and 8.

When no data type is specified, Windows PowerShell creates each array as an
When no data type is specified, PowerShell creates each array as an
object array (type: System.Object[]). To determine the data type of an array,
use the GetType() method. For example, to determine the data type of the $a
array, type:
Expand Down Expand Up @@ -432,7 +431,7 @@ ForEach(scriptblock expression, object[] arguments)
#### ForEach(scriptblock expression, object[] arguments)

> [!NOTE]
> The syntax requires the usage of curly brackets; parenthesis are optional
> The syntax requires the usage of a script block. Parentheses are optional.

The following example shows how use the foreach method. In this case the
intent is to generate the square value of the elements in the array.
Expand Down Expand Up @@ -537,12 +536,12 @@ optional argument allows additional selection capabilities, and the
are returned from the filter.

> [!NOTE]
> The syntax requires the usage of curly brackets; parenthesis are optional
> The syntax requires the usage of a script block. Parentheses are optional.

The following example shows how to select all odd numbers from the array.

```powershell
(0..9).Where{ $_ % 2 }
(0..9).Where { $_ % 2 }
```

```output
Expand Down Expand Up @@ -689,8 +688,8 @@ Stopped AppIDSvc Application Identity
To get the properties and methods of an array, such as the Length property and
the SetValue method, use the InputObject parameter of the Get-Member cmdlet.

When you pipe an array to `Get-Member`, Windows PowerShell sends the items one
at a time and Get-Member returns the type of each item in the array (ignoring
When you pipe an array to `Get-Member`, PowerShell sends the items one
at a time and `Get-Member` returns the type of each item in the array (ignoring
duplicates).

When you use the *-InputObject* parameter, `Get-Member` returns the members of
Expand Down
13 changes: 6 additions & 7 deletions reference/5.0/Microsoft.PowerShell.Core/About/about_Arrays.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ title: about_Arrays
# About Arrays

## Short Description

Describes arrays, which are data structures designed to store
collections of items.

Expand Down Expand Up @@ -43,7 +42,7 @@ $B = 5..8

As a result, $B contains four values: 5, 6, 7, and 8.

When no data type is specified, Windows PowerShell creates each array as an
When no data type is specified, PowerShell creates each array as an
object array (type: System.Object[]). To determine the data type of an array,
use the GetType() method. For example, to determine the data type of the $a
array, type:
Expand Down Expand Up @@ -432,7 +431,7 @@ ForEach(scriptblock expression, object[] arguments)
#### ForEach(scriptblock expression, object[] arguments)

> [!NOTE]
> The syntax requires the usage of curly brackets; parenthesis are optional
> The syntax requires the usage of a script block. Parentheses are optional.

The following example shows how use the foreach method. In this case the
intent is to generate the square value of the elements in the array.
Expand Down Expand Up @@ -537,12 +536,12 @@ optional argument allows additional selection capabilities, and the
are returned from the filter.

> [!NOTE]
> The syntax requires the usage of curly brackets; parenthesis are optional
> The syntax requires the usage of a script block. Parentheses are optional.

The following example shows how to select all odd numbers from the array.

```powershell
(0..9).Where{ $_ % 2 }
(0..9).Where { $_ % 2 }
```

```output
Expand Down Expand Up @@ -689,8 +688,8 @@ Stopped AppIDSvc Application Identity
To get the properties and methods of an array, such as the Length property and
the SetValue method, use the InputObject parameter of the Get-Member cmdlet.

When you pipe an array to `Get-Member`, Windows PowerShell sends the items one
at a time and Get-Member returns the type of each item in the array (ignoring
When you pipe an array to `Get-Member`, PowerShell sends the items one
at a time and `Get-Member` returns the type of each item in the array (ignoring
duplicates).

When you use the *-InputObject* parameter, `Get-Member` returns the members of
Expand Down
13 changes: 6 additions & 7 deletions reference/5.1/Microsoft.PowerShell.Core/About/about_Arrays.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ title: about_Arrays
# About Arrays

## Short Description

Describes arrays, which are data structures designed to store
collections of items.

Expand Down Expand Up @@ -43,7 +42,7 @@ $B = 5..8

As a result, $B contains four values: 5, 6, 7, and 8.

When no data type is specified, Windows PowerShell creates each array as an
When no data type is specified, PowerShell creates each array as an
object array (type: System.Object[]). To determine the data type of an array,
use the GetType() method. For example, to determine the data type of the $a
array, type:
Expand Down Expand Up @@ -432,7 +431,7 @@ ForEach(scriptblock expression, object[] arguments)
#### ForEach(scriptblock expression, object[] arguments)

> [!NOTE]
> The syntax requires the usage of curly brackets; parenthesis are optional
> The syntax requires the usage of a script block. Parentheses are optional.

The following example shows how use the foreach method. In this case the
intent is to generate the square value of the elements in the array.
Expand Down Expand Up @@ -537,12 +536,12 @@ optional argument allows additional selection capabilities, and the
are returned from the filter.

> [!NOTE]
> The syntax requires the usage of curly brackets; parenthesis are optional
> The syntax requires the usage of a script block. Parentheses are optional.

The following example shows how to select all odd numbers from the array.

```powershell
(0..9).Where{ $_ % 2 }
(0..9).Where { $_ % 2 }
```

```output
Expand Down Expand Up @@ -689,8 +688,8 @@ Stopped AppIDSvc Application Identity
To get the properties and methods of an array, such as the Length property and
the SetValue method, use the InputObject parameter of the Get-Member cmdlet.

When you pipe an array to `Get-Member`, Windows PowerShell sends the items one
at a time and Get-Member returns the type of each item in the array (ignoring
When you pipe an array to `Get-Member`, PowerShell sends the items one
at a time and `Get-Member` returns the type of each item in the array (ignoring
duplicates).

When you use the *-InputObject* parameter, `Get-Member` returns the members of
Expand Down
8 changes: 4 additions & 4 deletions reference/6/Microsoft.PowerShell.Core/About/about_Arrays.md
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ ForEach(scriptblock expression, object[] arguments)
#### ForEach(scriptblock expression, object[] arguments)

> [!NOTE]
> The syntax requires the usage of curly brackets; parenthesis are optional
> The syntax requires the usage of a script block. Parentheses are optional.

The following example shows how use the foreach method. In this case the
intent is to generate the square value of the elements in the array.
Expand Down Expand Up @@ -536,12 +536,12 @@ optional argument allows additional selection capabilities, and the
are returned from the filter.

> [!NOTE]
> The syntax requires the usage of curly brackets; parenthesis are optional
> The syntax requires the usage of a script block. Parentheses are optional.

The following example shows how to select all odd numbers from the array.

```powershell
(0..9).Where{ $_ % 2 }
(0..9).Where { $_ % 2 }
```

```output
Expand Down Expand Up @@ -689,7 +689,7 @@ To get the properties and methods of an array, such as the Length property and
the SetValue method, use the InputObject parameter of the Get-Member cmdlet.

When you pipe an array to `Get-Member`, PowerShell sends the items one
at a time and Get-Member returns the type of each item in the array (ignoring
at a time and `Get-Member` returns the type of each item in the array (ignoring
duplicates).

When you use the *-InputObject* parameter, `Get-Member` returns the members of
Expand Down