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
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Function Invoke-FlattenArray() {
<#
.SYNOPSIS
Given an array, flatten it and keep all values execept null.
Take a nested array and return a single flattened array with all values except null.

.DESCRIPTION
Take a nested array and return a single flattened array with all values except null.
Given an array, flatten it and keep all values except null.

.PARAMETER Array
The nested array to be flatten.
The nested array to be flattened.

.EXAMPLE
Invoke-FlattenArray -Array @(1, @(2, 3, $null, 4), @($null), 5)
Expand Down
4 changes: 2 additions & 2 deletions exercises/practice/flatten-array/FlattenArray.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ Function Invoke-FlattenArray() {
Take a nested array and return a single flattened array with all values except null.

.DESCRIPTION
Given an array, flatten it and keep all values execept null.
Given an array, flatten it and keep all values except null.

.PARAMETER Array
The nested array to be flatten.
The nested array to be flattened.

.EXAMPLE
Invoke-FlattenArray -Array @(1, @(2, 3, $null, 4), @($null), 5)
Expand Down