Skip To Content
PowerShell Gallery
Toggle navigation
Packages
Publish
Documentation
Sign in
Search PowerShell packages:
Type-Pwsh
0.1.0
private/locate.ps1
function
locate
{
param
(
[array]
$any
,
[array]
$in
)
# Return the index
0
..
(
$any
.
Length
-
1
)
|
?
{
$any
[
$_
]
-in
$in
}
}