Skip To Content
PowerShell Gallery
Toggle navigation
Packages
Publish
Documentation
Sign in
Search PowerShell packages:
PSElastic
1.0.1
Scripts/utils/Join-Parts.ps1
function
Join-Parts
{
param
(
$Parts
,
$Separator
)
(
$Parts
|
Where-Object
{
$_
}
|
ForEach-Object
{
(
[string]
$_
)
.
trim
(
$Separator
)
}
|
Where-Object
{
$_
}
)
-join
$Separator
}